Basketball shot-tracking system

ABSTRACT

A basketball shot-tracking system comprising a wrist tracker, a net tracker, and a shot-tracking mobile application. The wrist tracker is worn on the wrist or arm of a basketball player and the net tracker is attached to the net of the basketball hoop. The wrist tracker and net tracker automatically detect shot-attempt and made-shot events, respectively, and asynchronously transmit messages to the shot-tracking mobile application reporting these events. The shot-tracking mobile application, which runs on a mobile device, such as a smart phone or tablet computer, includes program instructions that, when executed by the CPU of the wireless mobile device, causes the wireless mobile device to automatically receive and process the asynchronous event data sent by the wrist tracker and net tracker, and to automatically tabulate, store and/or display the basketball player&#39;s shooting statistics (such as total shots taken, total shots made, shooting percentage, shot locations, and the like).

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is related to and claims priority under 35 U.S.C. §119to provisional application No. 61/834,018, filed Jun. 12, 2013,provisional application No. 61/837,896, filed on Jun. 21, 2013, andprovisional application No. 61/926,706, filed on Jan. 13, 2014, all ofwhich are incorporated into this application in their entirety by thisreference.

FIELD OF ART

The present invention relates generally to automated systems and methodsfor tracking and tabulating basketball shooting statistics, and moreparticularly to automated basketball shot-tracking systems utilizingmotion sensors, wireless transmitters and wireless mobile computersystems to detect, record and display a player's shot statistics,including the player's history of shot-attempts, made or missed basketsand shot locations on a basketball court.

BACKGROUND

There are a number of problems associated with conventional products andmethods for counting, recording and tracking a basketball player's shotstatistics (e.g., shots attempted, shots made, shots missed, shootingpercentage, shot locations, etc.). First, it is extremely cumbersome tomanually track and tally such statistics during a basketball shootingdrill or game. Usually, it either requires another person to tabulatethe information as the shooter shoots the basketball, or it requiresthat the shooter almost constantly interact with a tracking device(e.g., a smart phone, smart watch, or equivalent) while taking shots.Both of these approaches are too obtrusive and typically interfere withand reduce the progress and benefits of shooting drills. Therefore,there is a need for a basketball shot-tracking product and system thatcollects and processes shooting data unobtrusively, without interferingwith the shooter's workout routine, and that also provides a convenientand efficient way for the shooter to subsequently review the data,assess his or her progress over time, and share the shot statistics andprogress information with other interested parties.

BRIEF SUMMARY OF EXEMPLARY EMBODIMENTS OF THE INVENTION

The present invention addresses this need by providing a basketballshot-tracking system comprising a wireless wrist tracker, a wireless nettracker, and a shot-tracking mobile app. The shot-tracking mobile app isconfigured to execute on a wireless mobile device, such as a smartphone, smart watch, handheld electronic personal information managementsystem, tablet computer, or personal computer or laptop. The wirelesswrist tracker, which is worn on the wrist or arm of a basketball player,includes a computer processing unit (CPU), a set of computer-executableprogram instructions, one or more sensors, including, for example, anaccelerometer, a gyroscope and/or a barometric pressure sensor, one ormore “player shot data profiles” (also referred to as “shot-attemptprofiles”) stored in the wrist tracker's memory, and a radiotransmitter. The player shot data profiles represent the typicalmovements of a shooter's wrist or arm while the shooter takes shots atthe basketball hoop during a typical shooting drill, workout, game orother competition. The wrist tracker program instructions are operablewith the sensors, the player shot data profiles, and the CPU toautomatically detect shot attempts at the basket by comparing andmatching the actual movements of the shooter's wrist or arm (as detectedby the sensors) with the movements of the wrist or arm of a typicalbasketball player during a shot attempt as reflected in the one or moreplayer shot data profiles stored in the wrist tracker's memory.

The wireless net tracker also includes a CPU, another set ofcomputer-executable program instructions, one or more additional sensorssuch as another accelerometer, one or more “made-shot profiles” storedin the net tracker's memory, and a radio transmitter. The made-shotprofiles represent the typical perturbations of the basketball netattached to the rim of a basketball hoop when a shot is made during atypical shooting drill, workout, game, or other competition. The programinstructions in the net tracker are operable with the CPU, the made-shotprofiles, and the accelerometer to automatically detect a basketballpassing through the rim and the net of the basketball hoop. Morespecifically, the wireless net tracker determines whether a shot hasbeen made by comparing the actual perturbations of the net with thetypical perturbations of the net when a shot is made as reflected in theone or more made-shot profiles stored in the net tracker's memory.

In some embodiments, the memory storage area of the net tracker alsocontains one or more “rim bounce profiles” representing the typicalperturbations of the net when a shot hits the basketball hoop's rimand/or backboard and does not pass through the net (i.e., a missed shotthat is not an “air ball”). In these embodiments, the programinstructions in the net tracker are further operable with the CPU, therim bounce profiles, and the accelerometer to detect missed shots thathit and bounce off of the basketball hoop's rim and/or backboard (i.e.,close or very close missed shots) by comparing the actual perturbationsof the net with typical perturbations of the net on typical close shotsas reflected in the rim bounce profiles.

Although individual basketball players tend to consistently move theirwrists and arms through substantially the same motions during shots, onebasketball player's shooting form (i.e., sequence of shooting motions)may be substantially different from another basketball player's shootingform. For this reason, preferred embodiments of the basketballshot-tracking system of the present invention may include training andtuning modes, whereby a user can train and tune the system, therebycreating player shot data profiles that more accurately reflect theuser's typical wrist and arm movements during a shot attempt. Similarly,because some basketball hoop nets and rims are tighter (or looser) thanothers, preferred embodiments of the present invention may also permitusers to tune the made shot and rim bounce algorithms and/or to createand store made-shot profiles and rim bounce profiles that moreaccurately correspond to the typical perturbations of the net and/or rimon a particular basketball hoop when shots are made or bounced off ofthe rim or backboard.

To this end, an embodiment of a wrist tracker includes a motion sensor;a microprocessor which receives motion data generated by the motionsensor; computer memory; a transmitter; and a motion-processingapplication which executes on the microprocessor. The microprocessoranalyzes the motion data and then stores a qualified portion of themotion data in the computer memory. In particular, the qualified portionof the motion data is data that has been generated by the motionprocessor over a continuous period of time that lasts for more than apredetermined minimum period of time (e.g., which has been empiricallypredetermined to be necessary for a basketball player to take a shot)and that has been generated while the player's arm is in a potentialshooting position (e.g., as determined by angle of inclination of theplayer's arm relative to horizontal). The microprocessor then comparesthe qualified portion of the motion data to player shot data profilesthat have been previously stored in the computer memory—e.g., by theplayer having previously trained or tuned the device—where each of theplayer shot data profiles has data that is representative of how theplayer's shooting arm moves when the player attempts to make a shot forone of various different types of basketball shots. Based on thatcomparison, the microprocessor determines whether the player has made ashot-attempt of any of the different types of basketball shots and, ifso, the wrist tracker sends a shot-attempt event message to the wirelessmobile device.

In preferred embodiments, the motion sensor measures and outputsacceleration values Ax, Ay, and Az along three mutually orthogonal axes,and it also outputs information, in terms of quaternion values, as tothe angular orientation of the motion sensor in space. Themicroprocessor uses the quaternion values to determine the gravitationalcomponents Gx, Gy, and Gz of the acceleration values Ax, Ay, and Az,respectively, and it is the Gx, Gy, and Gz values, in particular, thatmay be compared to corresponding values within the player shot dataprofiles to identify whether a shot-attempt has been made, since thegravitational components of acceleration are most strongly indicative ofthe player's arm position, and hence motion, as the player shoots theball. Suitably, the microprocessor smoothes the incoming motion sensordata using a filter or a pseudo-filter, such as by processing the datawith a multiple-point-in-time moving averages process—e.g., one thatcalculates the average value of a given parameter at a point in time, animmediately previous point in time, and an immediately subsequent pointin time.

Furthermore, to create the player shot data profiles, a player makes aseries of training shots of a given type while the wrist tracker isrecording data. For each of the training shots, the microprocessoranalyzes the motion data generated by the sensor and then stores aqualified portion of it in the computer memory. The microprocessoranalyzes that stored data to identify within it motion data that isindicative of a basketball shot having been taken and the point in timeat which the basketball shot was taken. For example, a point of maximumjerk—which is defined as the square root of the sum of the squares ofthe acceleration values Ax, Ay, and Az—can be used to identify the pointin time at which the shot was taken. The microprocessor then stores inthe computer memory a window's worth of shot-taken data, whichshot-taken data is data that has been extracted from the qualifiedportion of data that has been stored, but that is taken from within asmaller time window of predetermined duration (e.g., 0.6 second) that iscentered around the point in time at which the basketball shot wastaken. The microprocessor then averages together the shot-taken datafrom all of the training shots within the series, on atime-increment-by-time-increment and parameter-by-parameter basis, andthen stores the so-averaged data values to yield a player shot dataprofile for the player for basketball shots of the given shot-type. Thisprocess can be repeated for multiple types of shots, e.g., jump shots,hook shots, layups, etc., to build a “library” of personal shot dataprofiles for the player.

The wrist and net trackers determine events, such as shot-attemptevents, made-shot events, and rim-bounce events, and uses their internalradio transmitters to asynchronously transmit these events to theshot-tracking mobile app running on the wireless mobile device. Theshot-tracking mobile app includes program instructions that, whenexecuted by the CPU of the wireless mobile device, causes the wirelessmobile device to automatically receive and process the asynchronousevent data as the data are received from the wrist and net trackers, andto automatically determine the shooter's shooting statistics (e.g.,total shots taken, total shots made, total shots missed, shotpercentage, total time shooting, shot locations, shooting history,shooting record, total points, shooting progress, skill level, etc.).These shot statistics may be saved by the shot-tracking mobile app tothe memory of the wireless mobile device. The program instructions inthe shot-tracking mobile app may also be configured to cause the CPU onthe wireless mobile device to continuously update the shot statistics inmemory and to continuously display the updated statistics on the screenof the mobile device in real time as shots are taken, made or missed.Preferably, the shot-tracking mobile app is also configured to receiveshot attempt and signal strength data from one or more shot locationtrackers positioned on or near the basket or basketball court, and toautomatically determine the locations of the shooter on the basketballcourt (or relative to the basket) during the shooter's shot attempts.

In some embodiments, the programming instructions in the shot-trackingmobile application are further configured to automatically detectwhether a connection to a wide area network, such as the Internet, iscurrently available, and to automatically upload the tracked basketballshot statistics to one or more remote online shot-tracking serversconnected to the wide area network. The programming instructions in theshot-tracking mobile app may also be configured to receive from theonline shot-tracking server the shot statistics of other basketballplayers, and/or to manage and distribute the shot statistic informationso as to permit multiple basketball shooters (who may or may not be onthe same basketball court at the same time) to challenge and engage eachother in shooting skill competitions, such as virtual games of“H-O-R-S-E,” for example. With embodiments of the present invention,players can share their shot statistics data and shooting workouts withother players, as well as organizations such as a professional or schoolbasketball team. In preferred embodiments, coaches can access the remoteonline server and submit requests to see a particular player's shootingdata and/or add players to his or her own basketball team roster.

The shot-tracking mobile app may also be configured to send shotstatistics to a “smart scoreboard” for display to an audience ofbasketball game spectators, thereby eliminating the need for (and/orreducing reliance on) a very expensive conventional electronicscoreboard at basketball games and a human scorekeeper to operate theelectronic scoreboard. In addition, the shot-tracking mobile app and/orthe remote online shot-tracking server may be configured to transmitshot statistics to authorized remote mobile devices in real time so thatfans, friends, parents and other relatives and supporters can view andmonitor a player's progress and/or game time shot statistics from remotelocations.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 shows a high-level block diagram illustrating the overall networkarchitecture for a basketball shot-tracking system configured to operatein accordance with an exemplary embodiment of the present invention,wherein the network includes a smart phone, one or more wrist trackers,one or more net trackers, one or more shot location trackers, one ormore tablet or personal computers, a smart scoreboard, and a remoteshot-tracking server.

FIG. 2 contains a diagram illustrating by way of example the typicaldata communications channels established between the wireless mobiledevice (e.g., smart phone), the net-tracking component and the wristtracker component in an exemplary embodiment of the present invention.

FIG. 3 contains a block diagram depicting some of the major physicalcomponents of the wrist-tracking device that could be used in oneexemplary embodiment of the present invention.

FIGS. 4A, 4B, and 4C show, respectively, a magnitude ring buffer used inan exemplary embodiment of the present invention to store valuesrepresenting the magnitude of acceleration of the shooter's wrist overtime, a Z-axis ring buffer used in an exemplary embodiment of thepresent invention to store values representing the magnitude ofacceleration of the shooter's wrist along the vertical (Z) axis overtime, and a pressure values ring buffer used in an exemplary embodimentof the present invention to store values representing the altitude ofthe shooter's wrist over time.

FIG. 5A shows a schematic diagram illustrating by way of example typicalwrist positions and vertical (Z-axis) acceleration values during atypical shot attempt.

FIG. 5B contains a graph for a shot-attempt profile, the graph andprofile illustrating the relationships between the barometric pressure,magnitude of acceleration (all axes) and magnitude of acceleration(Z-axis only) detected by the sensors in the wrist tracker during atypical shot attempt.

FIG. 6 shows a high-level flow diagram illustrating, in accordance withone embodiment of the present invention, the steps performed by the CPUin the wrist tracker in order to determine whether an actualacceleration pattern of a basketball player's wrist over time matches apredetermined shot-attempt profile, thereby indicating that ashot-attempt event message should be transmitted to the smart phone.

FIGS. 7A and 7B show, respectively, acceleration profiles for harddribbles and caught passes, which profiles could be used in someembodiments of the present invention to filter out wrist movementsassociated with dribbling and catching passes in order to reduce thenumber of false positives recorded by the shot-attempt algorithm used inthe wrist tracker to determine whether a shot-attempt event hasoccurred.

FIG. 8 contains a block diagram depicting some of the major physicalcomponents of the net-tracking device that could be used in oneexemplary embodiment of the present invention.

FIG. 9 contains a schematic diagram illustrating the structure andcontents of a magnitude ring buffer used in an exemplary embodiment ofthe present invention to store values representing the magnitude ofacceleration of the net over time as detected by the accelerometersensor in the net tracker.

FIGS. 10A and 10B show, respectively, a graph of the typical netperturbations caused by a basketball passing through the net withouttouching the rim (i.e., a “swish shot”), and a graph of the netperturbations caused by a basketball bouncing off of the rim of abasketball hoop without passing through the net (i.e., a missed shot).

FIG. 11A shows an example of a graph of an acceleration profileindicating the typical acceleration pattern (magnitude of accelerationverses time) of the net when a shot is made between times T₁ and T₂.

FIG. 11B shows an example of a graph for the actual acceleration patternof the net as detected by the sensor in the net tracker of the presentinvention when a shot is made between times T₃ and T₄. FIG. 11B alsoshows an example of a graph of an actual acceleration pattern of the netas detected by the accelerometer sensor in the net tracker of thepresent invention when a basketball bounces off of the rim between timesT₁ and T₂ without passing through the net.

FIG. 12 shows a flow diagram illustrating an exemplarycomputer-implemented algorithm executed by a central processing unit(CPU) of a net tracker configured in accordance with one embodiment ofthe present invention to determine whether a made-shot event or arim-bounce event has occurred at the net.

FIG. 13 shows a flow diagram illustrating an exemplarycomputer-implemented subroutine of the algorithm illustrated in FIG. 12,the subroutine containing program instructions configured to determinewhether the actual perturbations of the net match the typicalperturbations of the net when a shot is made as reflected in a made shotprofile stored in the net tracker's memory.

FIG. 14 shows a high-level flow diagram illustrating the steps performedby the CPU of a smart phone or other wireless mobile device, inaccordance with an exemplary embodiment of the present invention, toprocess incoming shot-attempt events, made-shot events, and rim-bounceevents.

FIG. 15 contains a schematic diagram illustrating the structure andcontents of a Bluetooth Low Energy (BLE) packet used in some embodimentsof the present invention.

FIG. 16 shows a high-level flow diagram illustrating the steps performedby the processor of a smart phone or other wireless mobile device, inaccordance with an exemplary embodiment of the present invention, tosynchronize shot-statistics data stored in local memory with theshot-statistics data stored on a remote online server.

FIGS. 17A-17C illustrate, by way of example, some of the screens anddata displayed on a smart phone running a shot-tracking mobile appconfigured to operate in accordance with some embodiments of theinvention during an individual workout or practice session.

FIGS. 18A and 18B illustrate, by way of example, some of the screens anddata displayed on a smart phone running a shot-tracking mobile appconfigured to operate in accordance with some embodiments of theinvention in connection with head-to-head skills challenges betweenplayers.

FIGS. 19-21 contain diagrams that illustrate, by way of example, thephysical arrangement of the smart phone and multiple shot locationdevices on a basketball court, and the propagation of signals containingBLE messages between said devices, in accordance with certainembodiments of the present invention, so as to permit the system todetermine where shot attempts occur on the basketball court.

FIG. 22 shows a high-level flow diagram illustrating the steps performedby the processor of a smart phone or other wireless mobile device, inaccordance with an exemplary embodiment of the present invention, todetermine the location of the wrist tracker when a shot-attempt eventoccurs.

FIGS. 23 and 24 contain diagrams that illustrate, by way of example, thearrangement of the smart phone and a single shot location device on abasketball court and the propagation of signals containing BLE messagesbetween said devices, in accordance with an alternative exemplaryembodiment of the present invention, so as to permit the system todetermine where shot attempts occur on the basketball court.

FIG. 25 shows a high-level flow diagram illustrating, in accordance witha second embodiment of the present invention, steps performed by the CPUin the wrist tracker in order to determine whether the wrist tracker isin a training mode, in which player shot data profiles for differenttypes of shots are developed and stored within the wrist tracker, or ina normal or shooting mode, in which shot-attempt events are recognizedand identified by the wrist tracker.

FIG. 26 shows a high-level flow diagram illustrating, in accordance withthe second embodiment of the present invention, steps performed by theCPU in the wrist tracker in response to an incoming BLE message.

FIG. 27 shows a flow diagram illustrating, in accordance with the secondembodiment of the present invention, steps performed by an applicationexecuting on a generalized computing device in connection with operationof the wrist tracker in the training mode.

FIGS. 28A-28F are flow diagrams illustrating, in accordance with thesecond embodiment of the present invention, process steps executed bythe wrist tracker CPU during the training mode to construct player shotdata (“PSD”) profiles, which are “templates” against which incoming dataare compared during operation of the wrist tracker in the normal orshooting modes.

FIGS. 29A-29C are flow diagrams illustrating, in accordance with thesecond embodiment of the present invention, process steps executed bythe wrist tracker CPU during the normal or shooting modes to identifyshot-attempt events by comparing incoming sensor data to the data storedin the player shot data profiles.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

In this disclosure, the last two digits of each reference numeralidentify a given component, element, or algorithm step, and thepreceding one or two digits of each reference numeral correspond to thenumber of the figure in which the element or step is depicted. Thus, ifa given element is shown in multiple figures, strictly speaking, theelement will have different reference numerals in each of the severalfigures; however, the last two digits will be the same across allrelated figures being discussed at the same time in order to explain aparticular concept or aspect of embodiments of the invention. Forexample, the same generalized computing device is depicted in FIGS. 1and 2 as element number 115 and 215, respectively. If multiple figuresare being addressed at the same time within this disclosure, just thereference numeral used in the lowest-numbered figure will be used in thetext. Furthermore, different elements that are illustrated in differentfigures, which are discussed at different points within this disclosure,likely will have reference numerals in which the last two digits are thesame; the fact that the elements are being discussed at different pointsin the disclosure should, however, prevent such commonality of the lasttwo reference-numeral digits from causing confusion. Finally, some ofthe flow diagrams in this disclosure span multiple drawing sheets. Seethe flow diagrams depicted in FIGS. 28A-28F and FIGS. 29A-29C. In suchcases, “flow chart connectors” are used to connect the diagrams andindicate how the system progresses from the flow diagram on one drawingsheet to the flow diagram of another drawing sheet. In particular, flowchart connector labels (e.g., “FC1”) inside circular shapes indicate“incoming” flows, while flow chart connector labels insidepentagon-shaped objections indicate “outgoing” flows.

System Overview

As illustrated in FIGS. 1 and 2, in a most-basic implementation,embodiments of a shot-tracking system according to the invention includea wrist-worn or arm-worn wrist tracker 105; a net tracker 110; and acomputing device 115 that executes a shot-tracking program orapplication (“app”) 120. In further embodiments, the shot-trackingsystem may also include one or more shot-location trackers 125, whichmay be used to identify the location on basketball court 130 from whicha shot has been taken or, at the very least, the distance away from net235 from which the shot was taken. As will be explained more fullybelow, the wrist-tracker 105 is configured to sense the motions of aplayer's arm/wrist and, once the wrist-tracker 105 has been “trained” orcalibrated as described below, to differentiate between shots on thebasketball net 235 actually attempted (e.g., jump-shots, layups,free-throws, hook-shots, etc.) and other motions commonly exhibitedwhile playing basketball (e.g., dribbling, making a pass, catching apass, blocking a shot, etc.). The net tracker 110, on the other hand, isattached to the basketball hoop's net and is configured to identify atthe net 235 shot-attempts that have been successful (made shots), aswell as to differentiate between successful shots on the basket—i.e.,the basketball has passed completely through the hoop and attachednetting—and unsuccessful shots on the basket.

The wrist tracker 105, which is battery-powered, is worn on or near thewrist of the shooter, and the net tracker 110 attaches to the back ofthe basketball net 110. The wrist tracker 105 may be inserted into apocket on a wristband worn on the wrist of the shooter or the pocket ofa larger garment that substantially covers the shooter's wrist, elbow,and upper arm, referred to as a shooting sleeve. Preferably, the wristtracker, wristband, and/or shooting sleeve are configured so that thewrist tracker will be positioned on the outside forearm to avoid anyinterference with the hand during shooting, passing or dribbling. In oneembodiment, the wrist tracker is disc shaped and can be aligned in anyangular orientation. In other embodiments, the wrist tracker is taperedand blunted at one end so that it can only be inserted into the pocketof the wristband or shooting sleeve in a single orientation.

The shot-tracking app 120 tabulates actual shots that have been taken,including the location or distance from which each shot has been takenwhen shot-location tracking is included in a given embodiment, andcorrelates the shots taken with the corresponding success/failureinformation determined by the net tracker 110. In this manner, theshot-tracking system allows a player or his/her coach to keep track ofhow many shots the player takes from a given location or distance awayfrom the net tracker(s) 110 and the player's accuracy from that locationor distance. Such information, in turn, can be used to assess how muchthe player practices shooting from a given location or distance, or toidentify the player's strengths and weaknesses, e.g., to use forstrategizing player utilization during an actual game.

As further illustrated in FIGS. 1 and 2, in preferred embodiments of theinvention, and as will be explained in greater detail below, thecomputing device 115 may be a portable device with wirelesscapabilities, e.g., a smart phone, a tablet computer, a laptop computer,etc., which is configured to send and receive data wirelessly using aBluetooth and/or a WiFi protocol. Similarly, the wrist tracker 105, thenet tracker 110, and, where included, the shot-location tracker(s) 125,are preferably configured to communicate wirelessly with the computingdevice 115 (designated 215 in FIG. 2) and, where required, with eachother (as addressed below) via the same protocol or protocols.

When the wrist tracker 105 determines that the player has taken anactual shot at the basket, the wrist tracker 105 sends a message to thecomputing device 115 notifying the computing device of that fact andincluding in the message a time stamp associated with the shot.Similarly, when the net tracker 110 determines that a shot has beentaken on the basket, it sends a message to the computing device 115notifying the computing device of the shot event, along with a timestamp and information as to the success or failure of the shot. Suchwireless communication between the tracker devices 105, 110 and thecomputing device 115 facilitates real-time tracking of the player'sactivities and success rates, and it maximizes the benefits andenjoyment associated with using a shot-tracking system according to theinvention. In alternative embodiments, however, the wrist tracker 105and the net tracker 110 could be configured to store and accumulate theshot-taken and success/failure data they each derive, and that storeddata could be downloaded to the computing device 115 after some periodof time via a direct connection (e.g., via Ethernet or USB cable).

As further indicated in FIG. 1, and as addressed further below inconnection with subsequent figures, the shot-tracking system—inparticular, the shot-tracking app 120—can be configured to accommodatemultiple wrist trackers 105 being used by multiple players on the samebasketball court 130 at a given time. That makes it possible, forexample, for players to compete against each other in shootingcompetitions with the shot-tracking system doing all of the tabulationand calculations. In addition, it permits a coach to keep track of whoamong multiple players is performing well and who is not performing wellduring an actual game. To make such a multiple-wrist-tracker deploymentwork, each wrist tracker 105 optionally includes player-identifying datain each message it sends upon detecting an actual shot being taken, andthe shot-tracking app 120 keeps track of the data it receives on aplayer-by-player basis.

Alternatively or additionally, the shot-tracking system can beconfigured to accommodate multiple net trackers 110 being used onvarious baskets around the same basketball court 130—or even atdifferent courts—at a given time, e.g., as in a practice gymnasium. Thismakes it possible, for example, for a whole team of players to practiceshooting at different locations within the gym. To make such amultiple-net-tracker deployment work, each net tracker 110 optionallyincludes net-identifying data in each message it sends to the app 120upon detecting a shot having been taken on the given net, and theshot-tracking app 120 keeps track of the data it receives on anet-by-net basis.

Wrist Tracker

As illustrated in FIG. 3, the wrist tracker 305 contains anaccelerometer 310; a main CPU 315 running custom code 320; a radiocomponent 325 for emitting event messages and receiving configurationcommands; one or more shot-attempt profiles stored in FLASH memory; anda battery (not illustrated) for power. In a preferred embodiment of thewrist tracker 305, the accelerometer 310 is a chip-based inertialmeasurement unit such as the MPU-6050 motion-tracking device availablefrom InvenSense Inc., of San Jose, Calif., which also includesgyroscopic sensing elements 335. This device measures and outputsacceleration X, Y, and Z in G's (1 G having an output value of 1000 inorder to eliminate the need to carry a decimal point) in three mutuallyorthogonal directions relative to the sensor itself, and it measuresrotational orientation of the sensor relative to Earth and outputs thatinformation in terms of quaternion values. (Quaternion data is expressedwith four values—Q1, Q2, Q3, and Q4—and identifies the location of apoint on a spherical surface and the rotational/angular orientationrelative to Earth of, for example, a set of three mutually orthogonalaxes having their origin at that point. Of the quaternion data, it isthe angular-orientation information that is used in the shot-identifyingalgorithms explained below.) Optionally, the wrist tracker may alsoinclude a highly sensitive barometric pressure sensor 340 for sensingpressure fluctuations associated with changes in position (i.e.,altitude) of the player's arm or wrist as he or she executes an armmovement, as well as one or more status light-emitting diodes (LEDs, notillustrated).

Once awoken, the CPU 315 executes program code from two separateportions of FLASH memory. In one portion 345 of FLASH memory, theprogram code contains the instructions that define the Bluetooth LowEnergy protocol implementation (called “the stack”) that moves messagesbetween the wrist tracker's memory and the shot-tracking mobile appexecuting on the wireless mobile device (e.g., smart phone). The otherportion 350 of the FLASH memory contains custom code that analyzes thedata arriving from the sensors in real time and that, upon a qualifiedmatch being made with a previously created player shot data profilestored in FLASH memory causes a message to be transmitted to thewireless smart phone or other computing device that a “shot-attemptevent” has occurred. This is referred to as the “shot-attemptalgorithm,” exemplary embodiments of which are shown and illustrated inFIG. 6 (addressed below) for one embodiment and in FIGS. 29A-29C(addressed even further below) for another embodiment.

When a shot-attempt event is detected by the wrist tracker 305, thewrist tracker 305 sends a BLE message (explained in greater detailbelow) to the shot-tracking mobile app indicating that “a shot attempthas been detected.” This message also includes a timestamp thatqualifies the shot-attempt event relative to a clock in the wirelesssmart phone and, optionally, a value indicating the “confidence level”that the wrist tracker algorithm has associated with the detectedshot-attempt event.

After a period of inaction or upon command from the smart phone, thewrist tracker shuts itself off to save battery power. An additionalcircuit and manufacturer-supplied algorithm estimates the remainingbattery capacity for the wrist tracker and provides that information inresponse to a standard protocol query over the radio frequencycommunication established with the shot-tracking mobile app running onthe smart phone. This allows the smart phone app to take action when thewrist tracker reaches some arbitrary threshold, say 80% battery powerremaining, and either alert the user through the display screen on thewireless mobile device or a web dashboard or automatically cause areplacement battery to be delivered to the user via postal mail.

The shot-attempt algorithm in the wrist tracker implements a series ofsteps arranged to compare sensor data received over a predeterminedperiod of time with predetermined thresholds indicative of a shotattempt by a shooter. As is the case with respect to many devices thatrely on mathematical functions to operate, data thresholds and timeperiods in the shot-attempt algorithm according to the present inventionare adjustable, thereby permitting the outcome of the algorithm to beadjusted to account for differences in form between shooters as well asdifferences in form between different classes of shooters. For example,it has been observed that very young basketball players tend to hold theball at a much lower starting position (such as in front of their facesor chests or even stomachs) just before shooting; they often use bothhands to push the ball toward the basket during a shot; and they tend tojump into the air, if they jump at all, only after the wrist and armshooting motions have already begun. Therefore, the wrist and armmotions exhibited by a younger player just before, during, and after ashot attempt is likely to be substantially different from the wrist andarm motions exhibited by an older, stronger basketball player, who willbe much more likely to hold the ball over his or her head during a “jumpshot;” much more likely to push the ball toward the basket with one hand(and use the other hand only to balance the ball); and much more likelyto jump into the air before beginning the wrist and arm motions requiredto shoot the ball. Therefore, to accommodate such differences inshooting motions and form, embodiments of the present invention may beconfigured to permit the user to select thresholds and time periods thatare most appropriate for the class of player.

As alluded to above, the shot-attempt algorithm compares motion dataaccumulated over a brief window of time to various shot-attempt profiles(e.g., jump-shots, layups, free-throws, hook-shots, etc.) that have beengenerated and stored previously. Accordingly, the device and itsalgorithms utilize buffers to store and process the data. For example,FIGS. 4A, 4B and 4C show, respectively, a magnitude ring buffer 405 thatmay be used in one exemplary embodiment of the present invention tostore values representing the magnitude of acceleration of the shooter'swrist over time; a Z-axis ring buffer 410 used in an exemplaryembodiment of the present invention to store values representing themagnitude of acceleration of the shooter's wrist along the Z-axis overtime; and a pressure values ring buffer 415 used to store valuesrepresenting the altitude of the shooter's wrist over time. (In thisparticular embodiment, the Z-axis is oriented along the shooter'sforearm and has a value of positive 1 g (i.e., +1000 units as output bythe sensor) when the player's arm is pointed straight down and a valueof −1 g (i.e., −1000 units) when the player's arm is pointing straightup.)

The operation of the sensing algorithms in the wrist tracker relies onpredetermined thresholds and typical patterns of motion for shotattempts, as reflected in the shot-attempt profiles. The shot-attemptprofiles may be created, for example, by attaching sensors to basketballshooters' wrists, and then observing and plotting the motions associatedwith a multiplicity of shot attempts. This exercise produces a wealth ofdata from which the typical accelerations associated with the wristsduring shot attempts can be thoroughly understood and the profiles canbe developed. In this connection, FIG. 5A shows a schematic diagramillustrating by way of example typical wrist positions and Z-axisacceleration values (i.e., along the forearm in this embodiment)observed during a typical shot attempt. FIG. 5B contains a graph for ashot-attempt profile, with the graph illustrating simultaneously thetime-varying magnitude M of total acceleration (i.e., the square root ofthe sum of the squares of accelerations along each of the X-, Y-, andZ-axes); the magnitude Z of acceleration along the Z-axis only; andbarometric pressure P detected by the sensors in the wrist trackerduring a typical shot attempt.

FIG. 6 shows a high-level flow diagram 600 illustrating, in accordancewith one embodiment of the present invention, the steps performed by theCPU in the wrist tracker in order to determine whether an actualacceleration pattern of a basketball player's wrist over time matches apredetermined shot-attempt profile, thereby indicating that ashot-attempt event message should be transmitted to the smart phone.During “live” operation of the wrist tracker—i.e., after shot-attemptprofiles have been created for various types of shots at the basket(hook shot, jump shot, layup, etc.) and stored in memory in thedevice—the algorithm is executed at a rate of one hundred cycles persecond.

As illustrated in FIG. 6, in each iteration of the algorithm,acceleration along the X-, Y-, and Z-axes is read from the wrist trackersensor at step 605, as is barometric pressure. The total magnitude M ofacceleration is then calculated at step 610 as the square root of thesum of the squares of each of the X-, Y-, and Z-axis accelerations:

M=√{square root over ((X ² +Y ² +Z ²))}.

In this embodiment, which utilizes ring buffers, the magnitude of thetotal acceleration M, the magnitude of acceleration along the Z-axis,and barometric pressure P are then stored in the next successivepositions of respective ring buffers 405, 410, and 415 at step 615.

At decision step 620, the algorithm evaluates, as a predicate or“gate-keeping” test, whether acceleration Z along the Z-axis is lessthan a pre-determined threshold value that is indicative of the player'sarm being raised to take an actual shot at the net, and it does so for apoint in time that is, for example, one half second earlier (i.e., T−50,where T is incremented by hundredths of a second). For example, as shownin FIG. 5A, when the player's arm is raised and is located within theupper sector 505 defined by dashed lines 510 and 515, which are inclinedat approximately 44.4° relative to horizontal, the wrist sensor 520 willexperience 1 g of gravitational acceleration directed toward Earth, andit will measure and output a component of that gravitationalacceleration directed along the Z-axis that ranges from −700 to aminimum value of −1000 when the player's arm is straight overhead. (Inthis regard, it should be recalled that the accelerometer output isscaled such that a value of 1 g sensed acceleration is output as 1000units—positive being toward the player's fingertips and negative beingtoward the player's body—and it should be noted that −700 is equal to−1000 times the sine of the 44.4° angle of inclination relative tohorizontal of the dashed lines 510 and 515.)

Thus, based on the predicate assumption that an actual shot will betaken with the player's shooting arm located somewhere within the uppersector 505, the algorithm first checks at step 620 to see whether thevalue Z of acceleration along the sensor's Z-axis is less than or equalto the pre-determined threshold value, e.g., −700, and it does so for apoint in time that is a predetermined period of time (e.g., one halfsecond) prior to the point in time at which the algorithm makes thatcheck. If the initial threshold value of the Z-axis acceleration doesnot exceed the predetermined threshold (i.e., Z is greater than −700),then the algorithm returns along branch 625 to begin another processingiteration. On the other hand, if the initial threshold value of theZ-axis acceleration does exceed the predetermined threshold (i.e., Z isless than or equal to −700), then the algorithm proceeds along branch630 to decision step 635.

At decision step 635, the algorithm evaluates whether the magnitude M oftotal acceleration exceeds a predetermined threshold value, which is,for example, 4 g's as identified in FIG. 5B as the “Impulse Threshold.”(In this context, the term “impulse” refers to a sudden, relativelylarge value of acceleration; that is in contrast to strict usage of theterm “impulse” as referring to the product of force times time.)Additionally, the algorithm tabulates (i.e., sums) the values of totalacceleration magnitude M for each of the points in time over a precedingwindow of time (e.g., half a second) corresponding to an empiricallydetermined “shooting window,” and it (the algorithm) evaluates whetherthis tabulated value Σ exceeds another predetermined threshold value.(This check helps to “filter out” brief, unsustained motions such aspump-fakes that might look superficially like an actual shot at the netbut that are not.) Further still, the algorithm checks whetherbarometric pressure P exceeds a predetermined pressure threshold for atleast a predetermined period of time. If any of the parameters fails toexceed its corresponding threshold value, it is considered that anactual shot at the net has not been taken, and the algorithm returnsalong branch 640 to begin another processing iteration. On the otherhand, if all three parameters exceed their associated threshold values,then a data packet is sent to the smart phone or other computing deviceat step 645 to indicate that a shot-attempt event has occurred.Additional details concerning the content of the data packet areprovided with the discussion of FIG. 15 below.

In some embodiments of the present invention, it will also be necessaryor desirable to identify patterns of motion associated with otherfrequent motions of the wrist while playing basketball and to filterthose patterns out so as to avoid those patterns being identified asshot attempts. To this end, FIGS. 7A and 7B show, respectively,acceleration profiles for hard dribbles and caught passes, whichprofiles could be used in some embodiments of the present invention tofilter out wrist movements associated with dribbling and catching passesin order to reduce the number of false positives identified by theshot-attempt-identifying algorithm used in the wrist tracker. Thus,“dribble rejection” code can be added to the wrist-tracking algorithms,the code having program instructions that look for a significant localminimum, below 1 g, for example (see the A event in FIG. 7A), thatprecedes a high magnitude*time of a dribble (B events in FIG. 7A). (Sucha profile would correspond to the player's hand/wrist rising (low-g) andthen pushing downward quickly as he or she dribbles the ball.) Thisapproach is convenient because dribbling is always up and down bydefinition. It should be understood, however, that such filtering codeis an optional function, which may or may not be necessary or usefuldepending on the circumstances.

Similarly, programming instructions to reject pass-catching patterns asshot attempts may also be added to the code executed by the CPU in thewrist tracker. These instructions may be configured to rely, forexample, on the fact that the slope of the acceleration magnitude valueis relatively steep (see event A in FIG. 7B) when the basketball impactsthe player's hand, and it is much more pronounced than the dampedacceleration that the player could make merely using his or her ownmuscle-tendon system.

Further still, the shot-tracking mobile app on the wireless mobiledevice may even be configured to query the user and, based on thereplies to the queries, adjust the thresholds and time periods used bythe shot-attempt algorithm to better conform to the wrist and armmotions that are typical for that particular player or that particularclass of player. In some embodiments, the thresholds, predetermined timeperiods, and shot-attempt profiles used by the shot-attempt algorithm inthe wrist tracker may also be selected or tuned by operating one or moreswitches located on the wrist tracker itself.

Net Tracker

As noted above, the shot-tracking app tabulates actual shots that havebeen taken and correlates the shots taken with the correspondingsuccess/failure information determined by the net tracker. Thus, the nettracker operates “side-by-side” with the wrist tracker to provideoptimal benefit of the shot-tracking system of the invention. In otherwords, the wrist tracker might be used by itself simply to keep track ofthe number of shots taken (including of different types) and, iflocation-tracking is provided with the system, the shot-distance orshot-location; however, it is the net tracker that determines whether agiven shot actually was successful—not just attempted—and knowing thatwill help a player or his/her coach assess where more practice is inorder.

The net tracker device is designed to be attached to one or morebasketball nets and to uniquely detect the motion of the net when abasketball passes through the net and to reject other motions of the netor rim due to the ball striking them or due to other interactionsbetween the net and its surroundings. The algorithm in the net trackerdevice processes the motion data detected by the accelerometer in realtime to detect whether the pattern of motion over a predetermined timeperiod matches a predetermined motion pattern for a made shot (i.e., the“made-shot profile”).

The algorithms that are applied to the data produced by the motionsensor in the net tracker (which in this case is a three-axisaccelerometer) are dynamically tunable so that adjustments can be madefor different frequency responses and physical variations of the netsand rims and still determine with a high degree of fidelity when shotsare made without generating an unacceptably high number of falsepositives (erroneous made-shot events when the basketball has notactually passed through the net). Furthermore, operation of the sensingalgorithms for the net tracker depends on predetermined thresholds andtypical patterns of motion for the net on rim-bounces and made shots, asreflected in the rim-bounce and made-shot profiles stored in the nettracker. The rim-bounce and made-shot profiles may be created, forexample, by attaching sensors to nets and then observing and plottingthe motions associated with a multiplicity of rim-bounces and madeshots. This exercise produces a wealth of data from which the typicalaccelerations of the nets can be thoroughly understood and the profilescan be created.

In general, the net tracker hardware may be substantially the same asthe wrist tracker hardware, except that net tracker hardware typicallydoes not include a barometric pressure sensor for sensing changes inaltitude. On the other hand, the net tracker employs a differentalgorithm for detecting made shots and rim-bounces. In preferredembodiments, the net tracker may be activated (awakened) by aperturbation of the net detected by the accelerometer. However, the nettracker may also be activated by a manually-operated “ON-OFF” switch.Like the shot-attempt algorithm, the made-shot algorithm in the nettracker uses tunable, predetermined time periods, thresholds, andprofiles (referred to as “made-shot” and “rim-bounce” profiles) todetermine when made-shot events and rim-bounce events have occurred.(Made-shot events and rim-bounce events may be referred to collectivelyas “net events.”)

As shown in FIG. 8, the net tracker 805 includes an embedded CPU 810with a real-time operating system, both of which are configured toacquire and process data produced by the accelerometer sensor in realtime. Similar to the wrist tracker, the net tracker 805 contains themain CPU 810, which runs custom code 815; an accelerometer 820; a radiocomponent 825 for emitting event messages and receiving configurationcommands; one or more made-shot and rim-bounce profiles stored in FLASHmemory; and a battery (not illustrated) for power.

In a preferred embodiment of the net tracker 805, the accelerometer 820may be the same chip-based inertial measurement unit as that used in thewrist tracker, i.e., the LIS331HH motion-tracking device available fromSTMicroelectronics of, for example, Coppell, Tex. As noted above, thatdevice measures and outputs acceleration X, Y, and Z in g's (1 g havingan output value of 1000) in three mutually orthogonal directionsrelative to the sensor itself. (In contrast to the wrist tracker,rotational orientation information from the device is not used inconnection with the net tracker.)

Once awoken, the CPU 810 executes program code from two separateportions of FLASH memory. In one portion 835 of FLASH memory, theprogram code contains the instructions that define the Bluetooth LowEnergy protocol implementation that moves messages between the nettracker's memory and the shot-tracking mobile app executing on thewireless mobile device. The other portion 840 of the FLASH memorycontains custom code that analyzes the data arriving from the nettracker sensors in real time and that, upon a qualified match being madewith a previously created made-shot event profile or rim-bounce eventprofile stored in FLASH memory, causes a message to be transmitted tothe computing device indicating that a net event has been recognized andindicating whether the net event was a made-shot event or a rim-bounceevent. This is referred to as the “made-shot algorithm,” an exemplaryembodiment of which is illustrated in FIGS. 10 and 11, addressed below.

When a net event is detected by the net tracker 805, the net trackersends a BLE message to the shot-tracking mobile app indicating that “amade-shot event has been recognized” or that “a rim-bounce event hasbeen recognized,” as appropriate. This message also includes a timestampthat qualifies the net event relative to a clock in the wireless smartphone and, optionally, the message may include a value indicating the“confidence level” that the net tracker algorithm has associated withthe detected net event.

After a period of inaction or upon command from the smart phone, the nettracker may shut itself off to save battery power. As is the case forthe wrist tracker, an additional circuit and manufacturer-suppliedalgorithm can estimate the remaining battery capacity for the nettracker and provide that information in response to a standard protocolquery over the radio frequency communication established with theshot-tracking mobile app running on the smart phone. This allows thesmart phone app to take action when the net tracker reaches somearbitrary threshold, say 80% battery power remaining, and either alertthe user through the display screen on the wireless mobile device or aweb dashboard or automatically cause a replacement battery to bedelivered to the user via postal mail.

Like the shot-attempt algorithm, the made-shot algorithm compares motiondata accumulated over a brief window of time to various net eventprofiles (e.g., made field goal, made layup, rim-bounce) that have beengenerated and stored previously. Accordingly, the net tracker and itsalgorithms utilize buffers to store and process the data. For example,FIG. 9 contains a schematic diagram illustrating the structure andcontents of a magnitude ring buffer used in an exemplary embodiment ofthe present invention to store values representing the magnitude ofacceleration of the net over time as detected by the accelerometersensor in the net tracker.

The made-shot algorithm in the net tracker implements a series of stepsarranged to compare sensor data received over a predetermined period oftime with predetermined thresholds indicative of a net event. As is thecase with respect to many devices that rely on mathematical functions tooperate, data thresholds and time periods in the made-shot algorithmaccording to the present invention are adjustable, thereby permittingthe outcome of the algorithm to be adjusted to account for differencesin, for example, specific nets, rims, backboards, etc., as noted above.

FIG. 10A shows an example of a graph of the typicalperturbation-associated acceleration caused by a basketball passingthrough the net without touching the rim (i.e., a “swish shot”). FIG.10B, on the other hand, shows an example of a graph of the netperturbations caused by a basketball bouncing off of the rim of abasketball hoop without passing through the net (i.e., a missed shot).The difference between the two profiles is readily apparent, with theswish shot producing a more distinct or discrete event as the ballperturbs the net quickly as it passes through the net, and then internalfriction within the strands of the net, friction between the strands ofthe net and the hoop mounting loops, and/or air resistance actingagainst the relatively light mass of the net act to bring the net backto rest fairly quickly. On the other hand, vibration caused by the ballbouncing off of the hoop and/or the backboard causes considerablylonger-lasting motion of the net as the net is driven by the dampedvibrations/oscillations or the significantly more rigid hoop/backboard,as is clearly visible in FIG. 10B.

Similarly, FIG. 11A shows an example of a graph of an accelerationprofile indicating the typical acceleration pattern (magnitude ofacceleration versus time) of the net when a shot is made between timesT₁ and T₂. The made-shot profile of FIG. 11A may be stored in the memoryof the net-tracking device for use by the net-tracking algorithm. Inpreferred embodiments, the default setting for the impulse threshold is4 G's; the default time period (T₁-T₂) is 100 ms; and the default sumfor the made-shot threshold (essentially the area under the accelerationprofile curve between times T₁ and T₂) is 2,000 G-ms. (As is the casewith respect to the wrist tracker, the term “impulse” in connection withthe net tracker refers to a sudden, relatively large value ofacceleration; that is in contrast to strict usage of the term “impulse”as referring to the product of force times time.) However, all of thesesettings are adjustable.

FIG. 11B, on the other hand, shows an example of a graph for the actualacceleration pattern of the net as detected by the sensor in the nettracker of the present invention when a shot is made between times T₃and T₄. In this case, motion of the net between times T₁ and T₂corresponding to a preceding event such as players knocking the net asthey challenge for the ball, a rim roll, etc., will be excluded fromconsideration by the 4 G impulse threshold.

Suitably, the algorithm in the net tracker is implemented at a rate ofone hundred cycles per second. Generally speaking, during eachiteration, the algorithm looks for an acceleration magnitude thresholdat some prior point in time, e.g., within the preceding 0.1 second oftime. If the magnitude threshold is met, the algorithm then integratesthe magnitude information forward through a predetermined window oftime—essentially calculating the area under the acceleration profilecurve as alluded to above—and, if this sum exceeds a second, made-shotthreshold value, the algorithm concludes that a made-shot event hasoccurred.

Thus, as illustrated in FIGS. 12 and 13, during each iteration of thealgorithm, acceleration of the net tracker accelerometer along the X-,Y-, and Z-axes is read from the net tracker sensor at step 1205, and thetotal magnitude M of acceleration is then calculated at step 1210 as thesquare root of the sum of the squares of each of the X-, Y-, and Z-axisaccelerations:

M=√{square root over ((X ² +Y ² +Z ²))}.

In this embodiment, which utilizes ring buffers, the magnitude of thetotal acceleration M is then stored in the next successive position ofmagnitude ring buffer (MRB) 900 (FIG. 9), as indicated at step 1215.

Next, at step 1220, the algorithm implements the net trackerpattern-matching algorithm, which is shown in greater detail in FIG. 13.As shown in FIG. 13, the impulse threshold (e.g., 4 g's as noted above)and the made-shot integral threshold (e.g., 2,000 g-ms as noted above)are established (step 1325) by, for example, executing a programinstruction to retrieve a pre-determined value from memory or,alternatively, by executing a program instruction that assigns a numericvalue to the appropriate variable, e.g., “set impulse_threshold=4.0”.Then, at decision step 1330, the algorithm evaluates whether themagnitude M stored in the ring buffer position corresponding to apredetermined number of time intervals beforehand (e.g., 10 timeintervals, i.e., “Now—10” as indicated in the flowchart) meets orexceeds the pre-established impulse threshold. If it does not, thealgorithm proceeds along branch 1335 to return a value of No Match Made(Match=“No”) at step 1350, indicating that the current net accelerationpattern does not match the pattern for a made shot, and then to exit thepattern-matching algorithm and return to the main flow of the algorithmillustrated in FIG. 12.

On the other hand, if the magnitude M meets or exceeds the impulsethreshold, the algorithm sums the acceleration magnitude value M foreach of the preceding predetermined number of points in time (e.g., 10,as noted above) as well as the acceleration magnitude M for the currentpoint in time, at step 1340. If that summed value does not meet themade-shot threshold (e.g., 2000 g-ms, as noted above), then thesubroutine proceeds along branch 1345 to return a value of No Shot Made(Match=“No”), again indicating that the current net acceleration patterndoes not match the pattern for a made shot at step 1350, to the mainpart of the subroutine. On the other hand, if the summed value meets orexceed the made-shot threshold, then the subroutine proceeds alongbranch 1355 to return a value of Shot Made (Match=“Yes”), at step 1360,to the main part of the subroutine.

At step 1270, the Match value is checked. If no shot was made, thealgorithm waits for one time period (e.g., 10 microseconds, or oneone-hundredth of a second when running at 100 cycles per second);increments the time value; and then returns to the beginning of thealgorithm, as shown at step 1275. On the other hand, if a shot was, infact, made, the algorithm will cause a shot-made event code to betransmitted to the computing device (e.g., smart phone) at step 1280before waiting for one time period; incrementing the time value; andreturning to the beginning of the algorithm, as shown at step 1275.

To minimize processing time during execution of this algorithm (whichmay be done for the wrist tracker, too, if desired), the threecomponents read from the accelerometer are converted for scale into onefloating point signed integer and then squared in that data format tomake use of the hardware multiplier in the core. A final floating pointsquare root is taken to obtain the magnitude though that has thepotential to be hand-coded as an iterative integer square root in thefuture.

// Sets G-level (24 fullscale range)/(2{circumflex over ( )}16bits) //(about 1/2731) then *1000 to save multiplies #define SCALE((12.0f*2.0f*1000.0f)/65536.0f) xaccel = (int16_t)(SCALE*vals[0]);yaccel = (int16_t)(SCALE*vals[1]); zaccel = (int16_t)(SCALE*vals[2]);Mag[dest_idx] = (uint16_t)   sqrt(xaccel*xaccel + yaccel*yaccel +zaccel*zaccel);

Because a timestamp is embedded in the BLE message, it is not necessaryto process the data in real-time. By analyzing buffered data in priortime there is no need to keep a running state (or fraction thereof).Although it may seem like this causes lag in the messaging system theembedded timestamp is adjusted backward for the processing window width.This dramatically simplifies code complexity.

Shot-Tracking Mobile App

As noted above, the shot-tracking app tabulates actual shots that havebeen taken—including the location or distance from which each shot hasbeen taken when shot-location tracking is included in a givenembodiment, as addressed more fully below—and correlates the shots takenwith the corresponding success/failure information determined by the nettracker. The shot-tracking application is configured to run on acomputer system, which may be a wireless computer device such as a smartphone, smart watch, tablet, or laptop computer system, or any othercomputer device suitable for use on or near a basketball court. Althougha handheld wireless device is preferred for convenience, the computersystem may also comprise a wired or wireless desktop computer systemconfigured to receive transmissions from the wrist trackers and nettrackers (and potential shot location sensors) being used on abasketball court. The basketball court could be located in an arena, agym, a driveway, a backyard, or any other place where wired or wirelesscomputers could be used in conjunction with radio frequency (RF)transmitters embedded in the net tracker, wrist tracker, and shotpotential location tracker devices. While the BLE transmission protocolis the current preferred wireless communication protocol, it will beunderstood and appreciated by those skilled in the art that, dependingon the particular environment, any one of many other suitable wirelesscommunication protocols, such as WI-FI or Bluetooth 4.0, could be usedwithout departing from the scope of the invention. Wired communicationchannels such as Ethernet, USB, and mini-USB cables could also be usedto transmit shot data between the devices for offline, non-real-timeprocessing.

In general, when the mobile app receives a signal from the wrist trackerindicating a shot-attempt event, the mobile app will store that event inmemory and wait a configurable amount of time for a transmission from anet tracker indicating that a net event (made shot or rim-bounce) hasoccurred. Thus, the mobile app will use the shot-attempt event datareceived from the wrist tracker to record the fact that a shot attemptoccurred at time T₁ and it will also use the net event data receivedfrom the net tracker to record that a shot was either made or missed attime T₂, where time T₂ may be up to 3 or 4 seconds after time T₁. Theapp could compute the actual time of the basketball's flight, infer adistance for the shot attempt and, if necessary, verify the inferreddistance based on RSS information received from shot-tracking locationdevices placed on the basketball court (explained below). Periodically,the app will send the shot-statistic data to a remote shot-trackingserver via a connection over a data communications network, such as theInternet. If no data communications channel to the network is currentlyavailable, the app is configured to store the data until such time assuch a connection becomes available.

Operational flow of the shot-tracking mobile app to process incomingshot-attempt events, made-shot events and rim-bounce events isillustrated in FIG. 14. When the shot-tracking mobile app starts up, itwill begin iteratively listening for a broadcast event from a wristtracker, a net tracker, or a shot location tracker, as illustrated bystep 1405, decision step 1410, and return branch 1415. When thebroadcast message is received (YES branch 1420 from decision step 1410),the mobile app will register the device that has been found by running asuitable connection protocol at step 1425, and then it will synchronizethe clocks on all the devices found at step 1430. After registration iscompleted and a connection is established, the mobile app can receivedata from the device. Then the app will begin listening for shot eventdata (i.e., shot-attempt events and net events) from those devices. Themobile app can also send commands and data to the wrist tracker and nettracker devices. Such commands and data may include, for example, acommand to synch the device's clock to a start time of zero.

With more specific reference to FIG. 14, the app will prompt the playerto initiate a tracking session at step 1435, and it will ask the playerto identify what he or she wants to do, i.e., practice shooting one ormore different types of shots, compete against another player in ashooting contest, or play an actual game. Once the player enters thatinformation, it is stored in memory at step 1440.

The app algorithm then enters a “listening” mode, indicated by decisionstep 1445, where it waits to receive incoming messages from the wristtracker and the net tracker. In particular, at decision step 1445, thealgorithm queries as to whether a shot event or a net event BLE messagehas been received. If no such event message has been received, thealgorithm loops back along branch 1450 to “listen” again for an incomingevent message.

On the other hand, if an event message has been received by thecomputing device, the algorithm proceeds to identify the nature of theevent message. First, the algorithm queries as to whether the incomingevent message is a shot-attempt event message, at decision step 1455. Ifthe incoming event message is a shot-attempt event message, thealgorithm will increase its tally of shots attempted at step 1460, andit will update and display updated tracking statistics on the mobilecomputing device at step 1465. Additionally, in preferred embodiments,the shot-attempt event message includes an identifier as to the specifictype of shot that has been taken, and the statistics are updated toreflect the particular type of shot that actually has been attempted.

On the other hand, if the incoming event message is not a shot-attemptmessage, the algorithm proceeds to query as to whether it is a shot-madeevent message, at decision step 1470. If the incoming event message isdetermined to be a shot-made event at decision step 1470, the algorithmincreases its count of shots made at step 1475. Additionally, at step1480, the algorithm checks to see whether any shot-attempt BLE messageshave been received by the app within a preceding, predetermined periodof time (e.g., 5 seconds). If not, the shots-attempted counter (step1460) will be incremented on the assumption that a shot necessarilywould have been attempted in order for the made-shot event to have beenrecognized in step 1470, but that the shot-attempt event BLE message wasnot generated/sent by the wrist tracker or that it was not received orrecognized by the mobile computing device. Once again, in that case, thealgorithm will update and display updated tracking statistics on themobile computing device at step 1465. On the other hand, if ashot-attempt BLE message has been received within the preceding,predetermined period of time, there will be no need to increment theshots-attempted counter at step 1460, since that will already have beendone after the shot-attempt event was recognized at step 1455, and thestatistics will be updated and displayed at step 1465 accordingly.

If the incoming event message is determined at step 1470 not to indicatea shot-made event, the algorithm then queries at step 1485 whether theincoming event message is a rim-bounce event message. If the incomingmessage is, in fact, a rim-bounce message, the algorithm checks at step1480 to see whether any shot-attempt BLE messages have been received bythe app within the preceding, predetermined period of time. If not, theshots-attempted counter (step 1460) will be incremented on theassumption that a shot necessarily would have been attempted in orderfor the rim-bounce event to have been recognized in step 1485, but thatthe shot-attempt event BLE message was not generated/sent by the wristtracker or that it was not received or recognized by the mobilecomputing device. Once again, in that case, the algorithm will updateand display updated tracking statistics on the mobile computing deviceat step 1465. On the other hand, if a shot-attempt BLE message has beenreceived within the preceding, predetermined period of time, there willbe no need to increment the shots-attempted counter at step 1460, sincethat will already have been done after the shot-attempt event wasrecognized at step 1455, and the statistics will be updated anddisplayed at step 1465 accordingly. If, however, the incoming eventmessage is determined at step 1485 not to have been a rim-bounce eventmessage, either, the algorithm cycles back to its listening mode (1445).

Finally, after statistics are updated and redisplayed (step 1465), thealgorithm queries as to whether the workout routine has been completed,at step 1490. That could be based on total time elapsed; number of shotstaken (including specified numbers of different types of shots beingtaken); number of shots made (including specified numbers or differenttypes of shots being made); or some other criterion. If the workout isnot complete, processing returns to the listening mode, i.e., decisionstep 1445. Otherwise, the app displays a final workout summary at step1495 and returns to step 1435, i.e., where the app waits for initiatingplayer input.

BLE Message Structure and Content

As is clear from the immediately preceding discussion of the overallflow of the mobile app, a system according to the invention takes fulladvantage of wireless messaging protocols such as Bluetooth wirelessprotocols. In particular, as noted above, Bluetooth Low Energy (BLE)messaging protocols are preferred. Typically, the BLE message contentswill include the type of event, a confidence level for the event, and atimestamp. That said, however, the BLE messages emitted by the wristtracker will have source and event codes (described below) that aredistinct from the source and event codes in BLE messages transmitted bythe net-tracking device, so that the smart phone can determine thesource of the message as well as the type of event that has occurred.Furthermore, inherent to the transmission medium and the message is asignal strength or power level for the received transmission, which thereceiving device can use to produce a received-signal-strength (RSS)indication

More specifically, embodiments of the present invention use a packetizeddata transmission scheme. FIG. 15 shows an exemplary packet used in someembodiments of the present invention. As shown in FIG. 15, the packets1505 transmitted and received by the transmitting and receiving devicesin embodiments of the present invention include four fields, comprisinga preamble 1510, a source identifier 1515, a payload 1520, and a cyclicredundancy check (CRC) value 1525. The preamble field 1510 contains abit stream XXX sent by the transmitting device to help the receivingdevice synchronize its own clock with the transmitting device's clock.The source address field 1515 contains data YYYY that uniquelyidentifies the source of the data. In this case, the source addressfield contains a MAC identifier, similar to the MAC identifiers used forEthernet communications. The payload field 1520 usually includes a bytelength for the payload data, as well as the actual payload data itself.In this case, the payload 1520 includes an event identifier indicating,for example, whether the event is a shot attempt, a made-shot event, ora rim-bounce event, as well as a timestamp. The payload data 1520 forembodiments of the present invention will be discussed in more detailbelow. The CRC field 1525 contains a polynomial value WWW created andused by transmission control algorithms in the transmitter and thereceiver to verify the integrity of the values in the source and payloadfields 1515 and 1520, respectively. If the transmission controlalgorithm in the receiver determines that the polynomial value WWW inthe CRC field 1525 is incorrect, it throws away the BLE packet 1505 andsends a request to the transmitter to resend the information in anotherpacket.

Regarding the payload 1520, in embodiments of the present invention, thepayload field is four bytes long and includes three components: an IDcode 1530; a confidence level 1535; and a timestamp 1540. The first byteof the payload field contains the ID code 1530, which indicates an eventID type such as a shot attempt, a rim-bounce, or a made shot. In FIG.15, the exemplary ID code is the value “2” (the notation “02H” in FIG.15 indicates a value of “2” stored in the computer system using thehexadecimal format), which is the event ID type code for a shot attempt.Thus, depending on the particular features desired for a particularscenario and embodiment of the present invention, the list of potentialevent ID type codes in the payload field could include, for example:

01H for ring buffer data

02H for a shot-attempt event (from the wrist tracker)

03H for a made-shot event (from the net tracker)

04H for rim-bounce event (from the net tracker)

05H for RSS information for a shot-attempt event (from a shot locationtracker)

0xFF for sensor malfunction at net tracker or wrist tracker.

With up to 256 available values for the first byte of the payload field,it will be recognized and appreciated by those skilled in the art thatthere is plenty of room for expansion, and other types of events besidesshot attempts, rim bounces, and made shots may also be added to thesystem and represented with different ID codes without departing fromthe scope of the present invention. For example, an event ID code havinga value of 83H (or some other value) might indicate to the smart phoneapp that the net tracker has experienced an unusual event or problemthat needs to be corrected, such as two basketballs becoming stuck inthe net or the net becoming wrapped around or tangled up with the rim asa result of a made shot or contact with a player's hand due to anattempt to block a shot.

The second byte of the payload field contains a confidence value 1535(e.g., the number “80”) for the detected event. Transmitting aconfidence value with each packet permits the receiving device todetect, for example, when there might be something wrong with thephysical setup of the system in relation to the particular environmentor the particular shooters. For example, if the shot-tracking mobile appstarts receiving a large number of packets containing a low confidencevalue (e.g., below 50%), this would be a strong indication that theaccuracy of the system might be dramatically improved 1) by adjusting,tuning, and/or re-calibrating a sensor, a threshold, a profile, or somecombination thereof; or 2) by moving a sensor to a new location on thebasketball court to better accommodate a particular environment, themotions of a particular shooter while shooting the basketball, or therigidity of a particular net or rim on the basketball hoop. For example,although most basketball nets are made of cotton or nylon, somebasketball nets—particularly basketball nets on public playgrounds—aremade of chained metal. When a shot is made on a net made of chainedmetal instead of nylon or cotton, the motions of the links in the netcan be dramatically different than the motion of cotton or nylon, andsuch differences can be accounted for by adjusting and/or re-calibratingthresholds and/or selecting different profiles to be used by thealgorithm in the net tracker device.

The final two bytes in the payload field contains a timestamp 1540(e.g., 4000 milliseconds), which indicates the time when the event wasdetected, relative to an initial synchronized point in time. Thetimestamp is an unsigned value of the number of 10-millisecond tickssince the epoch that qualifies the detected event. The shot-trackingmobile app running on the smart phone is configured to synchronize allnet tracker and wrist tracker device clocks to zero once they areconnected. This timestamp can then be used by the shot-tracking mobileapp to infer, among other things, that the shooter shot an air ball, thedistance between the net and the location where a shot was taken, andthe time of flight of the ball after a shot, which helps the systemverify and refine the shooting data used to track and record theshooting statistics.

In general, BLE messages will arrive in wrist-tracker-then-net-trackerorder. However, this may not always be the case. Thus, the distancebetween the shooter (wearing the wrist tracker) and the basket (with theattached net tracker) can be inferred from the difference between thewrist tracker timestamp and the net tracker timestamp. After the shootercalibrates the system using features of the shot-tracking mobile app,the app can be configured, for example, to categorize made shots asclose-range, medium-range, and long-range.

It will be apparent to those skilled in the art that, without departingfrom the scope of the present invention, a variety of alternativecommunications protocols besides BLE may be used to transmit theshot-attempt event data, made-shot event data, and rim-bounce event datafrom the wrist and net trackers to the wireless mobile device,including, for example, NFC, Wi-Fi, or full scale Bluetooth 2.1 to namebut a few examples. However, in certain situations, BLE offers thefollowing advantages:

-   1) It is optimized for low power and long operation on a single 3V    battery.-   2) A 12 byte transmission packet is considered large.-   3) The modulation is slightly different, yielding longer distance    than old versions of Bluetooth.-   4) It does not require certification by the manufacturer of certain    smart phone and handheld devices.-   5) It does not require active pairing by the user, which permits a    number of devices to be paired with each other.

In addition, BLE is designed to send changes of state in short messagesoriginating from either predefined services (identified by 16-bit UUIDs)or vendor-specific (VS) services (12-bit UUIDs). Embodiments of thepresent invention use 3779FFF0-xxxx-7908-F351-44BF632D5D36 as the VSUUID, where xxxx=A1A6 for the sensor on the shooter's wrist, and A1A7for the sensor on the basketball net. The messages themselves may alsocontain event-specific codes for redundancy.

In accordance with the BLE protocol, the wrist tracker advertises itselfas a “SLEV” and the net tracker advertises itself as a “NET.” Since theevent model is SLEV→NET, the system can unambiguously support multiplewrist trackers. The firmware version is encoded in the manufacturer namestring (0x2A29) of the Device Information Service (0x180A). The BatteryService (0x180F), which returns the estimated remaining capacity of thebattery as a percentage, is supported in preferred embodiment. Thepercentage of remaining battery capacity is derived by running themeasured voltage through a discharge model of the CR-2032 cell, suppliedin the SDK by Nordic Semiconductor.

The sole Characteristic of the VS service supports Indicate messages(asynchronous with guaranteed delivery to the smart phone) and writecommands. The former are emitted when shots/makes are detected or whenthe accelerometer buffer is downloaded for analysis. Write commands maybe issued by the smart phone to the wrist and net trackers in order toassign the event synchronization time, blink the LEDs for ambiguityresolution, or configure the behavior, profiles, and thresholds used bysensing algorithms.

Cloud-Based Operation

In preferred embodiments, the mobile app is also configured tosynchronize data with a remote server. FIG. 16 shows a high-level flowdiagram illustrating the steps performed by the CPU of the smart phoneor other wireless mobile device, in accordance with an exemplaryembodiment of the present invention, to synchronize shot statistics datastored in local memory with the shot statistics data stored on a remote,online server 135 (FIG. 1). Thus, at step 1605, the CPU determineswhether a data transmission channel such as WiFi or a cellular networkis available and, if so, whether there is Internet connectivity. If so,the CPU will perform a real-time synchronization with data stored on theremote server, in step 1610, and then wait 5 milliseconds (step 1615)before the synchronization algorithm repeats; otherwise, the CPU simplywaits 5 milliseconds before again checking for data transmissioncapability and Internet access.

By synchronizing the user profile information, user workouts, and allthe data that has occurred on the wrist and net trackers as well as themobile device with the remote server, it becomes possible to share thatdata with other device. That enables a player to practice individuallyat his or her convenience, and the player's coach to download and reviewthe player's performance at his or her own (i.e., the coach's)convenience. Alternatively, players who are remote from each other canchallenge each other to basketball shooting competitions via thedata-sharing capability of the remote shot-tracking server applications.This is an additional purpose of the shot-event server applications 140.

Typically, as illustrated in FIG. 1, the remote shot-tracking server135, which located in the cloud 137, is connected to the smart phone 115via a data communications pathway E such as a cellular network orWiFi/Internet. The mobile app 120 may also be configured to share shotevent data with a separate tablet computer 155 over communicationspathway F so that the user of the tablet computer 155 can monitor theshot statistics of a particular player, for example. The user of thetablet computer 155 could be a coach or parent, for example, sitting inthe stands, while the smart phone 115 could be held in the hands of anassistant coach or trainer standing on or near one end of the basketballcourt.

When a shooting challenge is in progress, the participants in thechallenge are permitted to see certain portions of each other's data(the portions associated with the challenge progress) for so long as thechallenge is ongoing. Notably, the shooters participating in thechallenges do not have to be logged onto the server at the same time.While the system is useful in keeping track of a shooting challenge intypical situations where the players are on the same court, it isenvisioned, for example, that the participants may even be located indifferent cities and time zones. The server will receive and store theinformation associated with each shooter so as to enable a competition,even though the shooters are not shooting at the same time.

Further still, cloud-based operation and the shot event serverapplications also enable the algorithms, profiles, and thresholds usedby the wrist tracker to be tuned remotely, so that they can be adaptedto a player's specific shooting form and thereby avoid producing anunacceptably-high number of false positives (erroneous shot-attemptevents when the shooter has not attempted a shot).

User Interface for Smart Phone Device

The shot-tracking app running on the smart phone is configured topresent a diverse array of information to the player, and FIGS. 17A-17C,18A and 18B illustrate, by way of example, some of the screens and datadisplayed on a smart phone running a shot-tracking mobile app configuredto operate in accordance with some embodiments of the invention. FIG.17A illustrates an exemplary user interface display screen fordisplaying charted shot locations, running totals and statistics for aplayer. FIG. 17B illustrates an exemplary user interface display screenfor tracking shots taken (e.g., free throws) during a workout. FIG. 17Cillustrates an exemplary user interface display screen for trackingweekly shooting totals statistics, as well as weekly progress, for aplayer. FIGS. 18A and 18B illustrate, respectively, exemplary userinterface display screens for controlling and managing competitiveshooting challenges between players.

Shot-Location Tracking

As shown in FIG. 1, preferred embodiments of the system also include atleast one shot location tracker. The purpose of the shot locationtracker is to record the signal strength of a wrist event at ageographically distant position and send that signal strengthinformation to the smart phone. Then, based on a geometric arrangementof the shot location tracker, the smart phone, and, optionally, one ormore additional shot location trackers, the smart phone can calculatethe most likely location of the wrist tracker on the basketball court atthe time that the wrist tracker emits the BLE message indicating that ashot-attempt event has occurred. Typically, the shot location trackerdevices are Bluetooth-enabled devices that operate in “promiscuous mode”in one end, which means they look for and only receive the specifictypes of event messages that are emitted by the wrist-tracking devices(i.e., shot-attempt event messages). Upon receiving a shot-attempt eventmessage from the wrist device, the shot location tracker devicesencapsulate the shot-attempt event information into a new BLE messageand adds its own RSS information, thereby creating a shot attemptlocation message that contains both the shot-attempt event informationfrom the wrist tracker and the RSS information from the shot locationtracker. The shot location tracker then sends the shot attempt locationmessage to the smart phone, which uses the shot attempt locationinformation and a triangulation routine to calculate the location on thebasketball court where the shot attempt occurred.

FIG. 19 shows a bird's eye view of a basketball court upon which thereare two nets, N1 and N2, and four basketball shooters, S1-S4. Shooter S1is taking shots at net N1, while shooters S2, S3 and S4 are taking shotsat net N2. All of the shooters S1-S4 are wearing wrist trackers (notshown in FIG. 19). Two net-tracking devices (net trackers) are attached,respectively, to each one of the two nets N1 and N2. There are also twoshot location trackers SLT1 and SLT2 on the court. A smart phone SP1equipped with a shot-tracking mobile app is located at one end of thebasketball court below the backboard attached to net N1. The smart phoneSP1 is configured to receive (a) BLE shot-attempt event messagestransmitted by all of the wrist sensors worn by shooters S1-S4, (b) BLEmade-shot event messages transmitted by nets N1 and N2, and (c) BLE shotlocation messages created and transmitted by shot location trackers SLT1and SLT2. Shot location trackers SLT1 and SLT2 are ideally placed onopposite sides of the court near the half court line for the highestfidelity. Additional shot location trackers (not shown in FIG. 19) mayalso be added to the system and placed at other locations on or aroundthe basketball court in order to increase the overall precision andfidelity of the shot location calculations in the system.

As illustrated best in FIG. 20, when shooter S1 attempts to shoot abasketball through net N1, the shot attempt is detected by shooter S1'swrist tracker (not shown), which emits a signal 2005 containing a BLEmessage coded to indicate a shot attempt has occurred. The shot attemptmessage is received and processed by the smart phone SP1, shot locationtracker SLT1 and shot location tracker SLT2. When the shot-attempt eventis received by the shot-tracking mobile app on the smart phone SP1,smart phone SP1 increments a shot attempt counter. If the smart phoneSP1 does not also receive a made-shot event message from the net N1within a predetermined time period (four seconds, for instance) afterreceiving the shot-attempt event message, then the shot-tracking mobileapp will also record that shooter S1's shot attempt resulted in a missedshot and update the shooter S1's shooting statistics accordingly.

When the shot-attempt event message is received by the shot locationtrackers SLT1 and SLT2, they will each re-encapsulate the shot-attemptevent information into a new BLE message, add RSS information to the newmessages, and each send the new messages to the smart phone SP1, wherethey will be used by the smart phone SP1 to determine the shooter S1'slocation at the time the shot attempt occurred. See FIG. 21. Thephysical geometric placement of the smart phone SP1 and shot locationtrackers SLT1 and SLT2 on the basketball court permits the shot-trackingmobile app on the smart phone SP1 to use the data provided by the wristtracker and the shot location trackers SLT1 and SLT2 to calculatedistance probability bands 2110, 2120 and 2130 for the shot attemptrelative to locations of the smart phone SP1, the shot location trackerSLT1 and shot location tracker SLT2, respectively. The shot-trackingmobile app then determines the location of the wrist tracker during theshot attempt based on the intersection of these three distanceprobability bands 2110, 2120 and 2130 for the smart phone SP1, shotlocation tracker SLT1 and shot location tracker SLT2, respectively. Inthis case, all three of the distance probability bands 2110, 2120 and2130 intersect at area 2140 on the basketball court, which means theshooter S1 and the wrist tracker (not shown) must have been locatedwithin area 2140 when the shot was attempted.

An exemplary algorithm used to determine the shooter S1's locationduring the shot attempt is shown and described in the flow diagramdepicted in FIG. 22. As shown in FIG. 22, the first step, step 2205, isto initialize the smartphone to identify the positions of the smartphone and location trackers on the basketball court. Alternatively, thesmart phone and location trackers may be moved to default locations onthe basketball court. In the next step, the app running on the smartphone receives a wrist packet transmitted from the wrist sensor, thewrist packet including a timestamp, a value indicating a received signalstrength and event code corresponding to a shot attempt. See step 2210.The wrist packet is stored in memory on the smart phone. Step 2215.Next, the smartphone receives a SLT1 packet transmitted by SLT1, theSLT1 packet comprising arrival event data indicating when the wristpacket was received by SLT1. See step 2220. The smart phone alsoreceives, in step 2225, an SLT2 packet transmitted from SLT2, the SLT2packet comprising arrival event data indicating when the wrist packetwas received by SLT2. The app running on the smartphone next reconcilesthe timestamps on the wrist packet, the SLT1 packet and the SLT2 packetto identify packets corresponding to the same shot attempt event. Seestep 2225. Based on the receive signal strength and known transmissionspeeds for the wrist sensor, SLT1 and SLT2, the app computes a distanceprobability band each one of the wrist packet, SLT1 packet and SLT2packet (step 2235), and calculates the intersections of the threedistance probability bands. Finally, in step 2245, the app records theintersection of the three bands as the origin of the shot attempt.

FIGS. 23 and 24 show a different physical arrangement of devices todetermine the location of the wrist-tracking device on the basketballcourt during a shot attempt. Instead of using a smart phone and two shotlocation trackers, the arrangement shown in FIGS. 23 and 24 uses a smartphone SP2 and a single shot location tracker SLT4 to collect theinformation needed to calculate the wrist tracker's location during ashot attempt. Although not as precise as the arrangement shown anddescribed in FIGS. 19-21, the arrangement of the shot location trackerSLT4 and smart phone SP2 in FIGS. 23 and 24 can also provide sufficientshot event location data to identify the location of the wrist trackerby taking advantage of the fact that one of the two areas ofintersection for the two distance probability bands will likely belocated outside of the boundaries of the basketball court. See FIG. 24.In this example, embodiments of the present invention assume that theshooter S5 must have been located in the area 2440 during the shotattempt because the other area defined by the intersections of the twoprobability bands 2410 and 2420 (i.e., area 2430) is wholly outside ofthe boundaries of the basketball court. Thus, the area 2430 can bedisregarded as a possible location for a legal shot attempt. Becausethis arrangement does not require a second shot location tracker, it isless expensive to set up and therefore probably more feasible for home,backyard or driveway basketball courts, as well as middle- andhigh-school basketball teams. However, the arrangement shown anddescribed in FIGS. 19-21, which requires two or more shot locationtrackers, will probably be more feasible for use by larger,better-funded organizations, like college and professional basketballteams.

Further Embodiments

Operating algorithms for another embodiment of a shot-tracking systemaccording to the invention are illustrated in FIGS. 25, 26, 27, 28A-28F,and 29A-29C. In this embodiment, identifying shot-attempt events (by thewrist tracker) is based more extensively on matching a given sequence ofarm and wrist motions over time to pre-established player profiles thanon meeting or exceeding predefined, single-value numerical thresholds,although certain threshold values are still used as pre-qualifying or“gateway” values before further analysis is performed on the data, asexplained more fully below. Furthermore, given the increased amount ofdata that is processed with a tracking system according to thisembodiment of the invention as compared to the previously describedembodiment of the invention, dynamically sized standard array buffersare used instead of simple ring buffers. Additionally, this embodimentof the invention does not utilize a barometric pressure sensor toidentify position of the wrist tracker.

In general, a very high-level, operational flow diagram for the wristtracker is shown in FIG. 25, and the algorithm illustrated in FIG. 25 isexecuted at a rate of 100 cycles per second. At step 2505, thewrist-tracker CPU first reads a command value stored in the wristtracker's buffer to determine whether the player is training thedevice—i.e., establishing profiles for his or her various types ofshots—or whether the player is using the system in “live,” operationalmode to actually identify and keep track of various shot-attempt events.The command value may be set by the player pressing a button or moving aswitch on the wrist tracker, or it may be set via an input being made atthe smart phone/computing device and a corresponding BLE message beingsent from the smart phone to the wrist tracker. At step 2510, the CPUchecks the value of the command. If the value indicates that the playeris training the device, the wrist tracker enters a profile-training mode(step 2515) and executes the shot-training algorithms described below;if the value indicates that the player is using the system in the“normal,” operational mode, the wrist tracker enters the operationalmode (2520) to execute the shot-attempt-identifying algorithm describedeven further below.

As shown in FIG. 26, when the wrist tracker receives a BLE message 2605,it processes the message (step 2610) to identify the contents thereof.The CPU then checks (step 2615) to see whether the BLE message is acommand to enter the profile-training mode and, if it is, the CPU storesthe training command indicator (2620) and proceeds accordingly toexecute the profile-training algorithms.

Otherwise, if the incoming BLE message is not a command to enter theprofile-training mode, the CPU checks (step 2625) to see whether the BLEmessage is an indicator that a profile-training shot has actually beentaken. (As indicated further below, a BLE message that aprofile-training shot has been taken can be caused to be sent by someonepressing a “shot-taken” button on the app or by a shot-made orrim-bounce event being identified by the net tracker. (It is alsopossible for the player to press a button on the wrist tracker itself toindicate that a shot has been taken, and no BLE message needs to be sentor received/processed by the wrist tracker in that event.)) If the BLEmessage is a training-shot-taken indicator, the CPU stores thetraining-shot-taken value (step 2630) and proceeds accordingly toprocess data that has been accumulated in the wrist tracker.

If the incoming BLE is not a command to enter the profile-training modeor an indicator that a profile-training shot has actually been taken,the command is simply stored by the CPU (step 2635). In this regard, itshould be noted that commands are stored in all three cases (steps 2620,2630, and 2635) because multiple different types of messages may be“picked up” by the wrist tracker, and the information associated withany given message needs to stored so that it is available for whateverpurpose it later may be used.

When the wrist tracker is in the profile-training mode, its CPUprocesses messages and data according to the flowcharts shown in FIGS.27 and 28A-28F, where the flowchart shown in FIG. 27 is higher-levelthan the flowchart shown in FIGS. 28-28F and where steps shown in FIG.27 represent actions taken by both the wrist tracker and, to a greaterextent, the shot-tracking app being executed on the smart phone/mobilecomputing device. On the other hand, the algorithm shown in FIGS.28A-28F will be co-executing on the wrist tracker with the algorithmshown in FIG. 27.

As shown in FIG. 27, in response to a BLE message 2701 sent by the app,the wrist-tracker CPU first retrieves Player Shot Data (“PSD”) sets thathave been stored previously on the wrist tracker, at step 2702. The PSDsets include information such as the name of the player, names ofdifferent types of shots in the player's overall profile, etc.

Next, at step 2703, the player uses the app to identify the particulartype of shot he or she wants to train the wrist tracker to identify, andthe app sends a corresponding BLE message 2704 to the wrist trackerdevice. The BLE message 2704 is received by the wrist-tracker (step2705), and the wrist tracker is readied to begin a five-shot trainingsequence or loop for the particular type of shot the wrist tracker is tobe trained to recognize (begin and end points of the training loop beingindicated by points 2706 a and 2706 b, respectively). (The specificnumber of shots used to train the wrist tracker to identify shots of agiven type could be more or less than five, although profiles developedusing more shots may tend to be more accurate and truly representativethan profiles developed using less shots.)

Next, the app sends a BLE message 2707 to the wrist tracker telling thewrist tracker to start recording acceleration and angular orientationdata to its buffer (step 2708) for the training shot that is about to betaken. Additionally, the app sends a BLE message 2709 to the net trackertelling the net tracker to start “watching” (step 2710) for a net event(i.e., shot-made event or rim-bounce event), which can be used as ashot-taken indicator. The app then causes the smart phone or othermobile computing device to give the player a countdown and then a shootcommand (2711), at which point the player takes a shot. Subsequently, ifthe net tracker identifies a net event, it sends a BLE message 2712 tothe app telling the app that a shot has been taken; alternatively, theplayer or someone else can press a button on the smart phone (step 2713)indicating that a shot has been taken. Either event will suffice toindicate that a shot has been taken (2714), and the app sends acorresponding BLE message 2715 to the wrist tracker telling the wristtracker that the shot has been taken so that the wrist tracker can stoprecording data (step 2716).

The app then checks at step 2717 whether, as determined based on its ownexecution of the training shot loop 2706 a/2706 b, five training shotsof the particular type have been taken. If not, processing returns tothe beginning of the training shot loop 2706 a/2706 b for the player totake another shot and for the wrist tracker to record more data. If, onthe other hand, five shots are assessed by the app to have been taken,the training shot loop terminates.

At that point, the algorithm implements a check, at step 2718, to makesure that five shots have actually been detected, and that the wristtracker buffer has been populated for five separate shots. If it isdetermined at step 2719 that five shots have not been actuallysensed/detected fully by the wrist tracker and the data bufferspopulated accordingly, any data that has been accumulated is discardedon the basis that the training session was not successful, and thealgorithm return to step 2705 to conduct another five-shot trainingcycle. On the other hand, if five training shots for a particular typeof shot have been detected and data for those five shots has been fullyrecorded, the training phase is considered complete and processingstops.

FIGS. 28A-28F, on the other hand, illustrate in detail how,specifically, the profile data is built for each of the various types ofshots a player might take, evaluating each of the five shots in thegroup of training shots that have been taken for the particular type ofshot. It is based largely on constructing a “smoothed” profile usingthree-point-in-time moving averages of accelerations of the player'sarm/wrist, and identifying average values of deviation, at each point intime, of actual values from average values so that how closely an actualsequence of player motions matches the profile can be ascertained lateron (to be used in connection with identifying an actual shot).

Furthermore, it should be noted that in the algorithms shown in FIGS.28A-28F and 29A-29C, and in contrast to the embodiment described above,the X-axis of the wrist tracker accelerometer is oriented along theplayer's forearm and is positive in the direction pointing toward theplayer's fingertips. The accelerometer's Y-axis is perpendicular to theX-axis and extends laterally relative to the accelerometer, such thatthe XY-plane defined by the X- and Y-axes is coincident with the planeof the accelerometer. Finally, the Z-axis extends perpendicularly to theXY-plane/accelerometer plane, i.e., into and out of the surface of theplayer's arm.

As an initial step 2801, the algorithm checks to make sure that thewrist tracker CPU is recording data into the various buffer locations.If it is not, the data-recording function of the CPU is initialized(step 2802) to “wake it up;” the “global” buffers are cleared (step2803); and the shot group buffers are cleared (step 2804). (The term“global” is used herein to indicate that data so designated applies toor has been calculated from all five test shots, as opposed to justindividual shots.) In other words, with respect to the global buffers,sensed moving-average acceleration values GAx, GAy, and GAz along theX-, Y-, and Z-axes, respectively, are set to zero, as are moving-averagegravitational components GGx, GGy, and GGz of those sensed accelerationvalues along the X-, Y-, and Z-axes. Furthermore, the moving-averagedquaternion values GQ1, GQ2, GQ3, and GQ4 are all set to zero, as areaverage deviation values of sensed X-, Y-, and Z-axis accelerations;average deviation values of X-, Y-, and Z-axis gravitational componentsof the sensed acceleration values; and average deviation values of thequaternion data. With respect to the shot group buffers (the term“group” being used here to refer to a group of training shots of aparticular type), actual (i.e., non-moving-averaged) sensed accelerationvalues Ax, Ay, and Az along the X-, Y-, and Z-axes, respectively, areset to zero, as are actual gravitational components Gx, Gy, and Gz ofthose sensed acceleration values along the X-, Y-, and Z-axes. Actualquaternion values Q1, Q2, Q3, and Q4 are also all set to zero.Furthermore, a Training Shot Indicator (TSI) flag, which is set to True(value=1) when a net event BLE message (2712, FIG. 27) is sent or whensomeone presses a button on the smart phone (step 21713, FIG. 27)indicating that a training shot has been taken, will be initialized toFalse (value=0).

Next, the CPU reads the sensed X-, Y-, and Z-axis acceleration valuesAx′, Ay′, and Az′ that are output by the wrist tracker accelerometer atstep 2805, and it reads (step 2806) and stores in corresponding bufferlocations (step 2807) the quaternion values Q1, Q2, Q3, and Q4 for theparticular instant of time. As explained above, the quaternion dataidentifies the rotational/angular orientation of the X-, Y-, and Z-axesof the wrist tracker accelerometer relative to Earth; using thatinformation, the algorithm is able to calculate the gravitationalcomponents Gx, Gy, and Gz of the measured or sensed accelerations alongeach of the three axes (step 2808), and those values are stored incorresponding buffer locations at step 2809. Then, the algorithmcalculates (step 2810) and stores in corresponding buffer locations(2811) actual acceleration of the player's wrist along each of the threeaxes, i.e., Ax, Ay, and Az, by subtracting the gravitational componentof acceleration along each of the three axes from the sensed or measuredacceleration along each of the three axes. In other words, the algorithmcalculates actual acceleration values as:

A _(x) =A _(x) ′−G _(x)

A _(y) =A _(y) ′−G _(y)

A _(z) =A _(z) ′−G _(z)

Additionally, at step 2812, the algorithm calculates the angle ofinclination, Theta_(x), of the player's forearm (i.e., the angle ofinclination of the sensor's X-axis) relative to horizontal, and thealgorithm calculates the angle of inclination, Theta_(xy), that the X-Yplane of the accelerometer makes with respect to horizontal, and thesevalues are also stored in corresponding buffer locations (step 2813).More particularly, these values are calculated as:

Theta_(x)=asin(G _(x)/1000)

Theta_(xy)=90−acos(√{square root over (G _(x) ² +G _(y) ²)}/√{squareroot over (G _(x) ² +G _(y) ² +G _(z) ²)})

(Gx is divided by 1000 in the first equation immediately above because,as noted above, the particular accelerometer that is used in thedisclosed embodiments outputs acceleration values using a scale where 1g=1000.)

Subsequently, at step 2814, the algorithm checks to see whetherTheta_(x) and Theta_(xy) are each greater than 10° for the particularinstant of time, which is consistent with the player's arm being raisedabove the horizon into position to shoot the ball. If they are greaterthan 10°, the algorithm sets as true (step 2815) a recording flag, whichindicates that data is being recorded, and data—namely, actualacceleration values along each of the three accelerometer axes,gravitational components along the three axes, quaternion values, andthe current value of TSI—is recorded to the appropriate buffer locationsat step 2816. The algorithm then cycles back to the beginning andexecutes again one one-hundredth of a second later, and as long as theplayer's arm is raised into a potential shooting position, data will beaccumulated in the buffers. On the other hand, if the player's arm comesback down and either of Theta_(x) and Theta_(xy) drops to less than 10°,the algorithm will proceed to step 2817 of FIG. 28B by way of flow chartconnector FC1.

Step 2817 of FIG. 28B may be reached either before the player has everraised his or her arm into potential shooting position or after theplayer has made a shot and brought his or her arm back down. Therefore,in step 2817, the algorithm checks to see whether the buffer count(i.e., the number of times data has been written to the buffers, witheach successive buffer count corresponding to a point in time that isone one-hundredth of a second later than the preceding buffer count) isgreater than 100, which corresponds to one second worth of data havingbeen written to the buffers. If the buffer count is less than 100, thenstep 2817 would have been reached before the player ever had his or herarm high enough (i.e., greater than 10°) to be in shooting position, orthe player only had his or her arm at a potential shooting angle for abrief period of time that was not long enough for a shot actually tohave been taken, e.g., as in a “pump-fake.” (It has been empiricallydetermined that at least one second—corresponding to 100 buffer countswhen the algorithm is executing at 100 cycles per second—is required fora player to take a shot.) In that case, the shot group buffers arecleared (step 2818), the recording flag is set to false (step 2819), andthe algorithm cycles back to the beginning and executes again oneone-hundredth of a second later. Thus, because not all accelerometerdata that is written to the buffers is actually saved for subsequentprocessing, that data which is, in fact, written and saved may bereferred to as “a qualified portion” of the data the accelerometergenerates.

On the other hand, if the buffer count exceeds 100 (i.e., more than onesecond of data has been recorded) at step 2817, the algorithm assesseswhere, within the time-span of data it has collected, it needs to startanalyzing the data to find the point that the test shot actually hasbeen taken (indicated by maximum value of “jerk” or magnitude of totalacceleration). Therefore, the algorithm first looks for either a pointin time where the shot indicator TSI is already present (value of 1) or,if no shot indicator was initially present, a point in time where theplayer's arm was raised in a “cocking” motion to start a shot. This isto ensure that the subsequent data analysis considers the appropriateportion of data. Accordingly, the algorithm picks its starting point(i.e., the buffer count or sequential time-increment number or index)for its search slightly differently depending on when/how the TSI flagwas set to 1.

More particularly, once the buffer count value has exceeded 100 (andafter the player's arm or the accelerometer plane angle has come backdown to less than 10°), the algorithm determines at step 2820 whetherthere was a contemporaneous indication of a shot being taken (TSI valueof 1), as would be the case if the player or someone else pressed abutton on the smart phone/computing device or on the wrist tracker soindicating (i.e., step 2713, FIG. 27). If it is determined in step 2820that the TSI has not been set (TSI is not equal to 1), then thealgorithm next proceeds to step 2821 of FIG. 28C by way of flow chartconnector FC3, where it waits a predetermined period of time, e.g., twoseconds, and then checks again at step 2822 to determine if there is anindication of a training shot being taken (TSI value of 1), as might bethe case where a net event has been detected and a net-event BLE messagehas been sent (i.e., step 2712, FIG. 27). If it is determined at step2822 that the training shot indicator has been set (TSI value is 1), thealgorithm proceeds to step 2829 of FIG. 28C (discussed in more detailbelow). Otherwise, the algorithm returns to step 2818 of FIG. 28B by wayof flow chart connector FC4, where the shot group buffers are cleared(step 2818), the recording flag is set to false (step 2819), and theprocessing ends because the algorithm is complete. The algorithm will beexecuted again (beginning at step 2801 of FIG. 28A) one one-hundredth ofa second later.

Continuing on FIG. 28B, if it is determined at step 2820 that the trainshot indicator is set (TSI value of 1), the assumption is that it willbe fairly easy to find the actual buffer or index value (i.e., thespecific sequential time-increment number) where the shot was takenwithin a one-second window of time. Therefore, the algorithm executes anindex-identifying loop (first shot-localizing branch) defined by thestart and end points of 2824A and 2824B, respectively, in FIG. 28B. Whenthis loop is started (at 2824A), the index (time increment) at which toexamine the data for the maximum jerk is initially set to 0, i.e., thevery beginning of the window's worth of data that has been stored in thewrist tracker buffer. The algorithm then checks whether the trainingshot indicator was present at that point in time (step 2825), i.e.,whether TSI for the particular point in time is equal to 1. If thetraining shot indicator is not equal to 1, the algorithm determineswhether it is at the end of the buffer i.e., whether it has reached thelast possible index number for which data is present in the buffer (step2826). If it is determined at step 2826 that the answer is “no” (i.e.,there are more index numbers/points in time for which data exists in thebuffer), then the algorithm increments the index value by one and checksagain (step 2825) whether the training shot index value for that nextincremental point in time is 1.

Once the algorithm finds its first incremental point in time (i.e.,index number) where the TSI value is 1 (i.e., the answer at step 2825 is“yes”), the algorithm sets the index value at which to start looking formaximum jerk to be that index value (i.e., where TSI first became 1) atstep 2827 (“startindex=index”) and exits the index-incrementing portionof the loop. The algorithm then “resets” the point in time at which tostart looking for maximum jerk to be one second earlier(“startindex=index−100”) at step 2828, exits the shot-localizing branch(1) (step 2824B), and then proceeds to step 2835 of FIG. 28D by way offlow chart connector FC2. The details of FIG. 28D will be discussedbelow.

Returning again to FIG. 28C, when the system determines in steps 2821and 2822 that there has been a slight delay in TSI becoming 1, thealgorithm next looks for the point in time where the gravitationalcomponent of measured acceleration in the Z-direction (Gz) is minimizedand sets the maximum-jerk-search starting point three seconds earlier.More particularly, the algorithm locates the point in time at which theball is “cocked” overhead and ready to be shot, and then sets thesearch-starting point three seconds earlier in time. (In this regard, itshould be recalled that Gz will have a maximum value of 1000 when theplayer's arm is held perfectly horizontal with the accelerometerparallel to the ground; it (Gz) will decrease to 0 when the player'sforearm is pointing straight up; and it will become negative, with alowest possible value of −1000, as the player's arm moves past verticaland toward the player's head, with a palm-up orientation.)

Thus, at step 2829, the minimum value of Gz is initialized to itsmaximum possible value (minGz=1000), and the index-identifying loop withstart and end points 2830B and 2830B, respectively, is executed. Whenthis loop is started, the index (time increment number) at which toexamine the data for the maximum jerk is initially set to 0 at step2830A, i.e., the very beginning of the window's worth of data that hasbeen stored in the wrist tracker buffer. The algorithm then checks, atstep 2831, whether Gz, the gravitational component of acceleration alongthe Z-axis, for the particular point in time is less than the previouslyset value of minimum Gz. If it is not, the algorithm checks at step 2832to see whether it has reached the last possible index number for whichdata is present in the buffer. If the answer is “no” (i.e., there aremore index numbers/points in time for which data exists in the buffer),the algorithm increments the index value by one and checks again (step2831) to see whether the next value of Gz is less than the previouslyset value of minimum Gz. On the other hand, if the value of Gz for thegiven point in time is determined at step 2831 to be less than thepreviously set value of minimum Gz, then the minimum value of Gz isreset to be equal to Gz for that increment of time at step 2832(minGz=Gz) and the search-start index is set to be the index value forthat particular increment of time (startindex=index) at step 2833. Thesteps between steps 2830A through 2830B are referred to hereinafter asthe second shot-localizing branch).

The algorithm then checks once again, at step 2832, to see whether ithas reached the last possible index number for which data is present inthe buffer. If the answer is “no” (i.e., there are still more indexnumbers/points in time for which data exists in the buffer), thealgorithm increments the index value by one and checks again (step 2831)to see whether the next value of Gz is less than the previously setvalue of minimum Gz. In this manner, the algorithm is able to locate thepoint in time at which the actual lowest value of Gz occurs, assumed tocorrespond to the player “cocking” the ball before taking the shot. Ifthe answer in step 2831 is “yes,” however, the algorithm exits theindex-incrementing portion of the loop; “resets” the point in time atwhich to start looking for maximum jerk to be three seconds earlier(“startindex=index−300”) at step 2834; exits the shot-localizing loop(step 2830B), and processing continues at step 2835 of FIG. 28D by wayof flow chart connector FC2. The details of FIG. 28D will be discussedimmediately below.

Beginning at step 2835 of FIG. 28D, the algorithm proceeds to find thepoint in time (and the corresponding index value) at which maximum jerkoccurs for the particular shot being processed within the five-shotgroup of shots, and it then sets a 0.6-second window, centered aroundthat point in time of maximum jerk, over which to process the data. Thealgorithm looks for this particular window, centered around the point ofmaximum jerk, because the point of maximum jerk will be the point intime at which the player's arm fires the ball or when the ball has justleft the player's hand.

Thus, at step 2835 of FIG. 28D, jerk-related values are initialized bysetting a jerk value equal to 0 (jerk=0) and by setting a maximum jerkvalue equal to zero (maxJerk=0). The algorithm then begins amaximum-jerk-finding loop—beginning with the search-starting index valueidentified by the steps in FIG. 28B (first shot-localizing branch) orthe steps in FIG. 28C (second shot-localizing branch), as explainedabove. The maximum-jerk finding loop, which is bounded by start and endpoints 2836A and 2836B of FIG. 28D finds the point of maximum jerk. Inparticular, at step 2837, the algorithm calculates jerk for a givenpoint in time as:

jerk=√{square root over (A _(x[i]) ² +A _(y[i]) ² +A _(z[i]) ²)},

where A_(x), A_(y), and A_(z) are the acceleration values along the X-,Y-, and Z-axes for a given index value i (i.e., particular point intime), starting with i being equal to the startindex value determinedimmediately previously.

At step 2838, the algorithm checks to see whether the jerk value for thegiven moment in time is greater than the previously set maximum jerkvalue. If it is not, the algorithm checks at step 2839 to see whether ithas reached the last possible index number for which data is present inthe buffer. If the answer is “no” (i.e., there are more indexnumbers/points in time for which data exists in the buffer), thealgorithm increments the index value by one and checks again (step 2838)to see whether the next value of jerk is greater than the previously setvalue of maximum jerk.

On the other hand, if the value of jerk for the given point in time isdetermined at step 2838 to be greater than the previously set value ofmaximum jerk, then the maximum jerk value is reset to be equal to thejerk value for that increment of time at step 2840 (maxjerk=jerk), andthe index at which the maximum jerk value occurs is reset to be equal tothe then-current index value (maxjerkindex=index) at step 2841.Additionally, at step 2842, the algorithm resets the starting indexvalue (to be used for subsequent data processing)—the starting indexvalue previously was determined in order to identify where the algorithmshould begin searching for the maximum jerk value, as explained above—toa point in time 0.3 second earlier. (The basis for doing so is the factthat a 0.6-second window of time centered at the moment when maximumjerk occurs provides a sufficient “window” of data against which tocompare incoming “live” data later on to identify shot-attempt events.)

The algorithm then checks once again, at step 2839, to see whether ithas reached the last possible index number for which data is present inthe buffer. If the answer is “no” (i.e., there are still more indexnumbers/points in time for which data exists in the buffer), thealgorithm increments the index value by one and checks again (step 2838)to see whether the next value of jerk is greater than the previously setvalue of maximum jerk. (In this manner, the algorithm is able to locatethe point in time at which the actual maximum jerk value occurs.) If theanswer is “yes,” however, the algorithm exits the index-incrementingportion of the loop, and it exits the maximum-jerk-finding loop (endpoint 2836B). The beginning of the 0.6-second window over which toprocess data to build the shot profile will now have been set.

Next, the algorithm progresses, by way of flow chart connector FC5, tostep 2843 of FIG. 28E, where the algorithm sets the end of the0.6-second window over which to process data by adding 60 indexcounts—i.e., 0.6 second—to the starting index value that has been set(reset, actually) in this manner. In other words, at step 2843, thealgorithm sets endindex=startindex+60. As noted above, the shot profilesare built based on three-point-in-time moving averages of accelerationsof the player's arm/wrist. For each parameter that is tracked(acceleration along each of the X-, Y-, and Z-axes; gravitationalcomponents thereof; and quaternion data), the three-point-in-time movingaverage is calculated by averaging the parameter value for a givenincrement of time with the parameter values at the immediately precedingand immediately following increments of time. Additionally, because thesubsequent analysis sequentially “folds” data from each of the fiveshots in a given group of training shots into previously calculated (or,for the first shot, previously zeroed) moving averages, it becomesimportant in connection with the values in the data buffers to keeptrack of a group number—representing the shot number (e.g., 1-5) withinthe sequence of training shots taken—as well as a sequence number(running from 0-59) that identifies which of the particular points intime in the 0.6-second window is being considered.

Thus, at this point in the overall process flow and using another loop,the algorithm calculates the three-point moving averages for each of thethree acceleration values; for each of the three gravitational componentvalues; and for each of the four quaternion values at each point in timealong the span of the 0.6-second window, starting at the point in timehaving the startindex value determined as above. Before the movingaverages are calculated, however, the original values are copied into atemporary or holding buffer for the shot, since the raw data will bewritten over as the averaging process—which relies on data from aprevious time increment to calculate the average at a given timeincrement—is conducted and otherwise would be lost.

The temporary buffer is a two-dimensional array-meaning it tracks boththe group number (i.e., the shot number in the five-shot trainingsequence) as well as the index value-because the temporary values willbe used subsequently to calculate deviations as explained below, and itis necessary to keep track of or to “group” the parameter valuesaccording to their corresponding shot-number when doing so. On the otherhand, because the moving-average values are “folded into” the globalmoving average values as soon as the moving-averages buffer has beenpopulated as explained below, and because they are not “carried along”further in the process, it is only necessary for the actual parametervalues to be stored in a one-dimensional array instead of atwo-dimensional array.

Furthermore, to avoid calling undefined or nonexistent values, initialvalues for each of the temporary buffer and the moving-averages bufferare populated before the loop is executed, in what may be referred to aspredicate, “primed” steps. Thus, at step 2846′ of FIG. 28E, the initialvalues for the temporary shot buffer are populated as follows (with Tindicating “temporary”):

TA _(x)[group][0]=A _(x)[startindex]

TA _(y)[group][0]=A _(y)[startindex]

TA _(z)[group][0]=A _(z)[startindex]

TG _(x)[group][0]=G _(x)[startindex]

TG _(y)[group][0]=G _(y)[startindex]

TG _(z)[group][0]=G _(z)[startindex]

TQ1[group][0]=Q1[startindex]

TQ2[group][0]=Q2[startindex]

TQ3[group][0]=Q3[startindex]

TQ4[group][0]=Q4[startindex].

Additionally, at step 2847′, the initial values for the three-pointmoving averages buffer are populated as follows:

A _(x)[startindex]=(TA _(x)[group][startindex−1]+A _(x)[startindex]+A_(x)[startindex+1])/3

A _(y)[startindex]=(TA _(y)[group][startindex−1]+A _(y)[startindex]+A_(y)[startindex+1])/3

A _(z)[startindex]=(TA _(z)[group][startindex−1]+A _(z)[startindex]+A_(z)[startindex+1])/3

G _(x)[startindex]=(TG _(x)[group][startindex−1]+G _(x)[startindex]+G_(x)[startindex+1])/3

G _(y)[startindex]=(TG _(y)[group][startindex−1]+G _(y)[startindex]+G_(y)[startindex+1])/3

G _(z)[startindex]=(TG _(z)[group][startindex−1]+G _(z)[startindex]+G_(z)[startindex+1])/3

Q1[startindex]=(TQ1[group][startindex−1]+Q1[startindex]+Q1[startindex+1])/3

Q2[startindex]=(TQ2[group][startindex−1]+Q2[startindex]+Q2[startindex+1])/3

Q3[startindex]=(TQ3[group][startindex−1]+Q3[startindex]+Q3[startindex+1])/3

Q4[startindex]=(TQ4[group][startindex−1]+Q4[startindex]+Q4[startindex+1])/3.

Once the initial values of the temporary buffer and the three-pointmoving averages buffer have been so populated in the “primed” steps, thealgorithm executes the loop (starting point 2845 a, starting value ofindex being equal to (startindex+1)) to populate and calculate/populatethe rest of the values in the temporary-values buffer and themoving-averages buffer, respectively, as follows:

TA _(x)[group][index−startindex]=A _(x)[index]

TA _(y)[group][index−startindex]=A _(y)[index]

TA _(z)[group][index−startindex]=A _(z)[index]

TG _(x)[group][index−startindex]=G _(x)[index]

TG _(y)[group][index−startindex]=G _(y)[index]

TG _(z)[group][index−startindex]=G _(z)[index]

TQ1[group][index−startindex]=Q1[index]

TQ2[group][index−startindex]=Q2[index]

TQ3[group][index−startindex]=Q3[index]

TQ4[group][index−startindex]=Q4[index],

(step 2846), and

$\begin{matrix}{{A_{x}\lbrack{index}\rbrack} = ( {{{{TA}_{x}\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack} + {A_{x}\lbrack{index}\rbrack} +} } \\{{ {A_{x}\lbrack {{index} + 1} \rbrack} )/3}\; {A_{y}\lbrack{index}\rbrack}} \\{= ( {{{{TA}_{y}\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack} + {A_{y}\lbrack{index}\rbrack} +} } \\{{ {A_{y}\lbrack {{index} + 1} \rbrack} )/3}\; {A_{z}\lbrack{index}\rbrack}} \\{= ( {{{{TA}_{z}\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack} + {A_{z}\lbrack{index}\rbrack} +} } \\{ {A_{z}\lbrack {{index} + 1} \rbrack} )/3}\end{matrix}$ $\begin{matrix}{{G_{x}\lbrack{index}\rbrack} = ( {{{{TG}_{x}\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack} + {G_{x}\lbrack{index}\rbrack} +} } \\{{ {G_{x}\lbrack {{index} + 1} \rbrack} )/3}\; {G_{y}\lbrack{index}\rbrack}} \\{= ( {{{{TG}_{y}\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack} + {G_{y}\lbrack{index}\rbrack} +} } \\{{ {G_{y}\lbrack {{index} + 1} \rbrack} )/3}\; {G_{z}\lbrack{index}\rbrack}} \\{= ( {{{{TG}_{z}\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack} + {G_{z}\lbrack{index}\rbrack} +} } \\{{ {G_{z}\lbrack {{index} + 1} \rbrack} )/3}\; Q\; {1\lbrack{index}\rbrack}} \\{= ( {{{TQ}\; {{1\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack}} + {Q\; {1\lbrack{index}\rbrack}} +} } \\{{ {Q\; {1\lbrack {{index} + 1} \rbrack}} )/3}\; Q\; {2\lbrack{index}\rbrack}} \\{( {{{TQ}\; {{2\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack}} + {Q\; {2\lbrack{index}\rbrack}} +} } \\{{ {Q\; {2\lbrack {{index} + 1} \rbrack}} )/3}\; Q\; {3\lbrack{index}\rbrack}} \\{( {{{TQ}\; {{3\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack}} + {Q\; {3\lbrack{index}\rbrack}} +} } \\{{ {Q\; {3\lbrack {{index} + 1} \rbrack}} )/3}\; Q\; {4\lbrack{index}\rbrack}} \\{( {{{TQ}\; {{4\lbrack{group}\rbrack}\lbrack {{{index}\text{-}{startindex}} - 1} \rbrack}} + {Q\; {4\lbrack{index}\rbrack}} +} } \\{ {Q\; {4\lbrack {{index} + 1} \rbrack}} )/3}\end{matrix}$

(step 2847), where “index” is the actual sequential number of the timeincrement being considered, starting from the point in time when the CPUstarted recording data; and the difference value of “index−startindex”(running from 0 to 59) indicates where, as within the 0.6-second windowbeing considered, the value would be located. This effectively functionsas a low-pass filter and smoothes the data within the 0.6-second profilewindow.

After the moving-average buffer values have been calculated and used toreplace the “raw” parameter data in the buffers, the algorithmcalculates global moving average values for the parameters, for eachpoint in time in the 0.6-second window, which global values represent anaveraging over all five training shots for each of the parameters ateach particular point in time in the window. Additionally, instead ofadding the particular parameter values at a given point in time withinthe window for all five training shots and then dividing by five, thealgorithm starts with the three-point-moving-averaged data for the firsttraining shot, calculates a global moving average (which will be equalto the moving-average value from the first training shot the first timea global moving average value is calculated), and then “folds in”moving-average data from the next training shot into the global movingaverage as the algorithm proceeds to process the data from all five ofthe training shots. In other words, the algorithm takes the previouslycalculated global value; “de-averages” it by multiplying by the previousgroup number (which yields what the sum of actual values would have beenat that point in the previous calculation); adds in the next (i.e.,currently-being-processed) value; and then divides by the current groupnumber to yield the “updated” global average value, with the currentparameter value “folded into” the global average.

Thus, the algorithm enters a loop, with beginning and ending points 2848a and 2848 b, respectively, where the global moving average values arecalculated/updated as the algorithm successively processes data fromeach of the five training shots within the group. Furthermore, becausethe global moving average array will be used subsequently like a0.6-second-wide template against which incoming “live” data will becompared, and that template will be “moved” from time-to-time-to-timealong the stream of incoming “live” data, it is useful to provide theglobal moving average values with indices running from 0 to 59 toindicate where, sequentially within the 0.6-second window, each value islocated (in contrast to “tagging” each value with an index representingwhere, within the entirety of the data the accelerometer has recorded,the value is located). Therefore, the global moving average values arecalculated as follows:

GA _(x)[index]=(GA _(x)[index]*(group−1)+A _(x)[index+startindex])/group

GA _(y)[index]=(GA _(y)[index]*(group−1)+A _(y)[index+startindex])/group

GA _(z)[index]=(GA _(z)[index]*(group−1)+A _(z)[index+startindex])/group

GG _(x)[index]=(GG _(x)[index]*(group−1)+G _(x)[index+startindex])/group

GG _(y)[index]=(GG _(y)[index]*(group−1)+G _(y)[index+startindex])/group

GG _(z)[index]=(GG _(z)[index]*(group−1)+G _(z)[index+startindex])/group

GQ1[index]=(GQ1[index]*(group−1)+Q1[index+startindex])/group

GQ2[index]=(GQ2[index]*(group−1)+Q2[index+startindex])/group

GQ3[index]=(GQ3[index]*(group−1)+Q3[index+startindex])/group

GQ4[index]=(GQ4[index]*(group−1)+Q4[index+startindex])/group

Similarly, the average position within the 0.6-second window of wherethe maximum-jerk value occurs, across all five training shots, iscalculated, at step 2849, by “folding in” the index location value(ranging from 0-59) for each training shot into a previously calculatedaverage maximum-jerk-index value, i.e.,

avgMaxJerkIndex=(avgMaxJerkIndex*(group)+maxJerk)/(group+1).

The group number (i.e., number of the training shot being processed) isthen incremented at step 2850, and the algorithm advances to step 2851of FIG. 28F by way of flow chart connector FC6, where it determineswhether all five training shots have been processed, i.e., whether thevalue for group has reached 5 upon being incremented at step 2850 ofFIG. 28E. If the algorithm has not processed all five training shots,the data-processing steps described above are repeated for the nexttraining shot.

On the other hand, if it is determined in step 2851 of FIG. 28F that thealgorithm has finished processing the data for all five training shots,it proceeds to create an array of average deviation values, whichreflects how consistent the motion within each training shot was fromshot-to-shot, thereby providing a “window” of confidence (e.g., errorbars) for each data point that will be used to assess how closely asample of data from a “live” movement event matches thetraining-shot-based profile when actual shots are being searched for.Furthermore, because the array only applies to the 60 data points withinthe 0.6-second window, index values for the array run from 0-59. Togenerate this array, the algorithm executes a nested pair of loops,with 1) the outer loop having start and end points 2852 a and 2852 b,respectively, and running from a shot group number of 1 to a shot groupnumber of 5, and 2) the inner loop having start and end points 2853 aand 2853 b, respectively, and running from an index value of 0 to anindex value of 59. Thus, “folding in” sequential data as explainedabove, the algorithm calculates deviation values for each of theaccelerometer-based parameters and populates the deviation buffer array,using the absolute value of the difference between global average valuesand specific measured values (i.e., information retained in thetemporary buffer array as addressed above), as follows (step 2854):

DevA _(x)[index]=(DevA _(x)[index]*(group−1)+|GA _(x)[index]−TA_(x)[group−1][index]|)/group

DevA _(y)[index]=(DevA _(y)[index]*(group−1)+|GA _(y)[index]−TA_(y)[group−1][index]|)/group

DevA _(z)[index]=(DevA _(z)[index]*(group−1)+|GA _(z)[index]−TA_(z)[group−1][index]|)/group

DevG _(x)[index]=(DevG _(x)[index]*(group−1)+|GG _(x)[index]−TG_(x)[group−1][index]|)/group

DevG _(y)[index]=(DevG _(y)[index]*(group−1)+|GG _(y)[index]−TG_(y)[group−1][index]|)/group

DevG _(z)[index]=(DevG _(z)[index]*(group−1)+|GG_(z)[index]−TG[group−1][index]|)/group

DevQ1[index]=(DevQ1[index]*(group−1)+|GQ1[index]−TQ1[group−1][index]|)/group

DevQ2[index]=(DevQ2[index]*(group−1)+|GQ2[index]−TQ2[group−1][index]|)/group

DevQ3[index]=(DevQ3[index]*(group−1)+|GQ3[index]−TQ3[group−1][index]|)/group

DevQ4[index]=(DevQ4[index]*(group−1)+|GQ4[index]−TQ4[group−1][index]|)/group

Finally, the algorithm constructs the Player Shot Data (PSD) array forthe given type of shot using the global moving average values and thedeviation values determined as described above, as well as theavgMaxJerkIndex. Thus, with the index value “new” being used to identifythe particular type of shot to which the data relates, the algorithmpopulates the PSD array at step 2855 as follows:

PSD _(—) A _(x)[new]=GA _(x)

PSD _(—) A _(y)[new]=GA _(y)

PSD _(—) A _(z)[new]=GA _(z)

PSD _(—) G _(x)[new]=GG _(x)

PSD _(—) G _(y)[new]=GG _(y)

PSD _(—) G _(z)[new]=GG _(z)

PSD _(—) Q1[new]=GQ1

PSD _(—) Q2[new]=GQ2

PSD _(—) Q3[new]=GQ3

PSD _(—) Q4[new]=GQ4

PSD _(—) DevA _(x)[new]=DevA _(x)

PSD _(—) DevA _(y)[new]=DevA _(y)

PSD _(—) DevA _(z)[new]=DevA _(z)

PSD _(—) DevG _(x)[new]=DevG _(x)

PSD _(—) DevG _(y)[new]=DevG _(y)

PSD _(—) DevG _(z)[new]=DevG _(z)

PSD_MaxJerkIndew[new]=avgMaxJerkIndex.

The algorithm then clears the temporary five-shot array buffers (so thatthey are initialized to values of 0 for other types of shots to betrained) at step 2856 and sets a training flag to false (value=0) atstep 2857 to indicate that the wrist tracker is not in the shot-trainingmode. At this point, the algorithm returns to step 2819 of FIG. 28B byway of flow chart connector FC7.

With training completed for all of the various types of shots the playermay make, the wrist tracker is able to identify shot-attempt eventsaccording to the algorithm shown in FIGS. 29A-29C. In general, thisalgorithm—referred to as “the personal shooting algorithm”—will becycling the entire time the wrist tracker is in “live” or “shooting”mode where an actual shot will or may be taken, e.g., during shootingpractice or an actual game. Additionally, the algorithm “keys off of”the same indicia to indicate that a shot has been taken as are used whenthe wrist tracker is being trained, namely, that the player's arm hasbeen raised more than 10° above horizontal for more than a second, ashas the X-Y plane of the accelerometer.

Thus, as shown in FIG. 29A, an initial step in execution of the shootingalgorithm, global moving array buffers with values as defined above, andshot-group array buffers containing X, Y, and Z acceleration values; X,Y, and Z gravitational components; and Q1, Q2, Q3, and Q4 quaternionvalues as output by the wrist tracker accelerometer, are cleared (i.e.,values are set to 0) at steps 2901 and 2902. Additionally, a trainingshot indicator flag is also set to 0.

Subsequently, acceleration values along each of the X-, Y-, and Z-axesas output by the wrist tracker accelerometer are read at step 2903, asare quaternion values Q1, Q2, Q3, and Q4 at step 2904, with thequaternion values being written to an array (step 2905). Gravitationalcomponents G_(x), G_(y), and G_(z) of the measured X-, Y-, andZ-acceleration values are calculated from the quaternion data at step2906, and those values, too, are written to an array (step 2907). Valuesfor the actual X-, Y-, and Z-acceleration of the player's arm are thencalculated by subtracting corresponding gravitational components at step2908, and the actual acceleration values Ax, Ay, and Az are written toan array (step 2910).

Next, the angle of inclination, ThetaX, of the player's forearm relativeto horizontal and the angle of inclination, ThetaXY, that the X-Y planeof the accelerometer makes with respect to horizontal are calculated inthe same manner as described above, at step 2911, and these values arealso stored in corresponding buffer locations (step 2912).

Subsequently, at step 2913, the shooting algorithm checks to see whetherThetaX and ThetaXY are both greater than 10°. If both ThetaX and ThetaXYare greater than 10°, the algorithm sets as true (value=1), at step2914, a shot-started flag indicating that a shot is putatively beingtaken, and accelerometer-based data—namely, actual acceleration valuesalong each of the three accelerometer axes, gravitational componentsalong the three axes, and quaternion values—is recorded to theappropriate Shot Group Array buffer locations at step 2915. Thealgorithm then terminates and executes again one one-hundredth of asecond later. As long as the player's arm is raised into a potentialshooting position, data will be accumulated in the buffers. On the otherhand, if the player's arm comes back down and either of ThetaX andThetaXY drops to less than 10°, the algorithm will proceed to subsequentanalytical steps.

In particular, at step 2916 of FIG. 29A, which is reached either beforethe player has ever raised his or her arm into potential shootingposition or after the player has brought his or her arm back down from aposition where a shot might have been taken—it is not known at thispoint in the algorithm whether a shot actually was taken—the algorithmchecks to see whether the buffer count (i.e., the number of times datahas been written to the buffer) is greater than 100, which correspondsto one second worth of data having been written to the buffers. If thebuffer count is less than 100, then step 2916 would have been reachedbefore the player ever had his or her arm high enough (i.e., greaterthan 10°) to be in shooting position, or the player only had his or herarm at a potential shooting angle for a brief period of time that wasnot long enough for a shot actually to have been taken. In that case,the shot group buffers are cleared (step 2917), the shot-started flag isset to false (step 2918), and the algorithm cycles back to the beginningand executes again one one-hundredth of a second later. Thus, becausenot all accelerometer data that is written to the buffers is actuallysaved for subsequent processing, that data which is, in fact, writtenand saved may be referred to as “a qualified portion” of the data theaccelerometer generates.

On the other hand, if it is determined at step 2916 of FIG. 29A that thebuffer count exceeds 100 (i.e., more than one second of data has beenrecorded), the algorithm progresses to step 2919A of FIG. 29B by way offlow chart connector FC8, where the algorithm proceeds to analyze thedata that has been accumulated to determine whether a shot actually hasbeen taken. To this end, the algorithm first calculates three-pointmoving averages of the data for the various parameters to smooth it out,much like a low-pass filter, in generally the same manner as before.However, instead of “copying” the data to a temporary buffer asdescribed above in connection with FIGS. 28A-28F to avoid “losing” thedata values for preceding time increments which is needed for themoving-average calculation, and then overwriting the actual data valueswith the moving-average values, the shooting algorithm simply writes themoving-average values to a separate, moving-average buffer instead.Additionally, to avoid calling non-existent data values, the movingaverages for each of the parameters are calculated starting at an indexof 1 (to avoid calling a non-existent value for a time before the bufferstarts recording) and ending at an index equal to 1 less than the sizeof the array, e.g., size(A_(x))−1 (to avoid calling a non-existent valuefor a time after the buffer has stopped recording).

Thus, the shooting algorithm calculates moving averages via a loop, withstarting point at step 2919 a and end point at step 2919 b, as follows:

MA _(x)[index]=(A _(x)[index−1]+A _(x)[index]+A _(x)[index+1])/3

MA _(y)[index]=(A _(y)[index−1]+A _(y)[index]+A _(y)[index+1])/3

MA _(z)[index]=(A _(z)[index−1]+A _(z)[index]+A _(z)[index+1])/3

MG _(x)[index]=(G _(x)[index−1]+G _(x)[index]+G _(x)[index+1])/3

MG _(y)[index]=(G _(y)[index−1]+G _(y)[index]+G _(y)[index+1])/3

MG _(z)[index]=(G _(z)[index−1]+G _(z)[index]+G _(z)[index+1])/3

MQ1[index]=(Q1[index−1]+Q1[index]+Q1[index+1])/3

MQ2[index]=(Q2[index−1]+Q2[index]+Q2[index+1])/3

MQ3[index]=(Q3[index−1]+Q3[index]+Q3[index+1])/3

MQ4[index]=(Q4[index−1]+Q4[index]+Q4[index+1])/3

Once the moving average buffers have been populated for theacceleration, gravitational-component, and quaternion-component values,the algorithm is able to start looking for shot-attempt events bycomparing G_(x), G_(y), and G_(z) data within the moving average buffersagainst the corresponding PSD data for each of the possible types ofshot that might have been taken and for which the wrist tracker has beentrained. (Only the gravitational components of acceleration need to becompared, since they are the parameters that actually reveal arm/wristposition and allow a shot-attempt to be identified; it may be usefulnonetheless to maintain the data for all ten moving-average parameters.)To expedite the process, the algorithm first does a preliminary or“qualifying” check to see whether, for a given window of time within the“live” moving-average data, the first ten values for each of theparameters G_(x), G_(y), and G_(z) matches the first ten values withinthe corresponding PSD array; if they do, the starting position withinthe moving-average array of values (i.e., the first index of thewindow's worth of time) is recorded, so that subsequently that portionof the data can be examined more thoroughly for a shot-attempted match.

Thus, the algorithm executes a series of loops with an outermost loop2920 “bounding” two pairs of nested loops defined by steps 2921/2922 andsteps 2923/2924. The outermost loop 2920 corresponds to the varioustypes of shots that can be taken and for which the wrist tracker hasbeen trained, and therefore it loops through all of the PSD sets,starting with a PSDGroup index value of 0 at beginning point 2920 a.

As soon as the algorithm begins to consider the possibility that datawithin the moving-averages buffers corresponds to a shot of a giventype, the algorithm executes the ten-point pre-check by means of thefirst pair of nested loops 2921/2922. Thus, starting at 2921A with aninitial moving-averages buffer index of 1, the algorithm executes theinner loop 2922. Starting at 2922A with the first ten sets of parametervalues (i.e., sets of the three parameters Gx, Gy, and Gz) in the PSDbuffers, the inner loop 2922 compares the data in the PSD buffer to aten-increment window of data in the moving-averages buffer (step 2925),and that comparison is done on atime-increment-by-corresponding-time-increment basis as the inner loopsteps through the first ten time increments worth of data in the PSDbuffer. In making that comparison at step 2925, the algorithm counts thenumber of times all three parameter values for a given increment of timewithin the PSD buffer (i.e., with a given PSD index) match all threeparameter values for the corresponding increment of time in themoving-averages buffer to within twice the average deviation that hasbeen calculated (as explained above) for the particular parameter at thecorresponding time-incremental position within the PSD buffer. In otherwords, the algorithm checks to see whether the absolute value of thedifference between the PSD value of each parameter and the correspondingvalue of the parameter in the “live,” moving-average buffer is less thantwo times the corresponding average deviation value. (Matching just tenparameter sets to within twice the average deviation, which can berevised if desired, provides a fairly large degree of freedom in makingthis initial pre-screen for matches between the “live” data and the PSDshot profile data.)

If the parameter set (i.e., all three gravitational components of theacceleration values) at each of the first ten time-incremental positionswithin the PSD buffer matches the corresponding parameter sets withinthe moving-averages buffer (i.e., the number of data sets having allparameter values within the prescribed deviation is equal to 10, asindicated at decision step 2926), then the starting-index value for theten-increments-wide moving-averages window that has been pre-screened isrecorded at step 2927 as a possible starting index location to beexamined more fully for a shot-attempt event, and the startingmoving-averages-buffer index is incremented by one. Otherwise, if thenumber of pre-screening matches does not equal ten, the startingmoving-averages-buffer index is not recorded before the startingmoving-averages-buffer index is incremented. The algorithm then loopsback to the beginning of loop 2921 and conducts this pre-screeningcomparison again, with the ten-increments-wide pre-screening window ofmoving-averages buffer data “shifted” to a point in time that is onetime increment later, and the process will be repeated until the“leading” index value of the moving-averages window is ten less than thesize of the moving-averages buffer.

Once the algorithm finishes identifying the starting-index locations forpossible shot-attempt events in this manner, it proceeds to step 2923Aof FIG. 29C by way of flow chart connector FC9, where it examines thedata more carefully at each of the possible shot-attempt starting-indexlocations. To do so, the algorithm executes the second pair of nestedloops 2923/2924. (If there are no ten-increment sub-windows that matchthe PSD data at all ten increments, then there would be no potentialshots of the given type to examine; in that case, the algorithm simplybypasses this nested pair of loops and proceeds to the next shot-typevalue.)

Thus, for each of the possible starting-index values (which are cycledthrough at the level of outer loop 2923 of FIG. 29C, with starting point2923 a), the algorithm compares the Gx, Gy, and Gz values in the full,0.6-second-wide “template” of the PSD buffer to time-wise corresponding(on an increment-by-increment basis) values within a 0.6-second-widewindow of data within the moving-averages buffer. In making thatcomparison within the inner loop 2924 (starting point 2924A; endingpoint 2924B; and cycling through the moving-averages buffer from astarting index location equal to the particular identifiedpotential-start-index value to a location that is 60 increments later),the algorithm counts the number of times the difference between each ofthe Gx, Gy, and Gz values and the corresponding PSD value is less thantwice the corresponding average deviation value, as indicated at step2928, and the algorithm records the number of such matches for each ofGx, Gy, and Gz at step 2929.

Once the number of matches for each of Gx, Gy, and Gz has been recorded,the algorithm calculates a confidence value, as a fractional number,which indicates how well the 0.6-second PSD template matches themoving-average buffer data at the given increment location within themoving-averages buffer. In particular, at step 2930, the algorithmcalculates confidence value as (CountGx+CountGy+CountGz)/(3*size(PSD)),where size(PSD) is equal to the number of increments—60, in thisembodiment—within the PSD “template” window.

Furthermore, at steps 2931-2934, the algorithm assesses how closely thePSD data matches the “live” data by considering deviation of the wristtracker orientation in a window of time centered around the occurrenceof maximum jerk within the 0.6-second window of “live” data. Thus, atstep 2931, the index value for the time increment where maximum jerkoccurs is identified. (Details of thismaximum-value-index-identification are not shown in the figure, but thesubroutine is essentially the same as that shown in FIG. 28 anddescribed above.) Then, at step 2932, the difference between the valuefor each of Gx, Gy, and Gz within a twenty-one-increment window centeredat the point of maximum jerk (i.e., MaxJerk Index+/−10) within the“live-data” window and the corresponding values of Gx, Gy, and Gz withina twenty-one-increment window centered at the point of maximum jerkwithin the PSD window is calculated, and the number of times theabsolute value of the difference is less than a predetermined amount(e.g., 120, or 0.12 g) is tabulated for each of Gx, Gy, and Gz.Subsequently, at step 2934, a jerk-based confidence value jerkConfidenceis calculated as (CountGx+CountGy+CountGz)/(3*size(jerkwindow)), whereCountGx, CountGy, and CountGz at this point are now the number of timesthe gravitational component values match as centered around the maximumjerk location, and jerkwindow is the size in increments (i.e., 21 inthis case) of the window centered around the point of maximum jerk.

At step 2935, the algorithm averages the confidence value based onmatching across the entire 0.6-second window and matching across the21-increment window centered around the point of maximum jerk, and itsets that average confidence value to be the confidence value for thepossibility of a match having been located with the 0.6-second PSDwindow being “laid over” the “live” moving-averages buffer data,starting at the given potential-starting-index value set at thebeginning of the outer loop 2923 of the nested pair. Then, at step 2936,the algorithm checks to see whether the confidence value associated withthe particular potential-starting-index value is higher than anyconfidence values that have been determined for previouspotential-starting-index values that have been considered, or whether itis higher than any confidence value that has been determined to be amaximum confidence value when assessing whether a shot of a differenttype has been taken. If it is, the confidence value associated with theparticular potential-starting-index value under consideration is set tobe the new maximum value for the possibility of a match—to any type ofshot—having been made, and the type of shot that was being consideredfor a potential match—i.e., the PSD identifier—is preferably recorded(not specifically illustrated).

This analysis is then repeated for each of the various types of shotthat could be made, i.e., by comparing the associated PSD data to the“live” data that has been stored in the moving-averages buffer.Subsequently, at step 2937, the algorithm checks to see whether themaximum confidence level for a match having been found (determined atstep 2936) exceeds a predetermined threshold. In this exemplary case,the threshold, which has been empirically determined to be suitable andwhich can be adjusted by the player if he or she wishes, is set at 0.75.If it does, a BLE message indicating that a shot has been taken (i.e., ashot-attempt BLE message), including the type of shot that has beentaken, is sent at step 2938, and the app processes the messageaccordingly as described above. The various buffers are then all clearedat step 2939 and the algorithm then returns to step 2918 of FIG. 29A byway of flow chart connector FC10. Otherwise, if it is determined at step2937 that the maximum confidence level does not exceed the predeterminedthreshold, the buffers are simply cleared, with no BLE message beingsent, and the algorithm repeats.

The above-described preferred embodiments are intended to illustrate theprinciples of the invention, but not to limit its scope. Various otherembodiments, modifications and equivalents to these preferredembodiments may occur to those skilled in the art upon reading thepresent disclosure or practicing the claimed invention. Such variations,modifications and equivalents are intended to come within the scope ofthe invention and the appended claims

What is claimed is:
 1. A basketball shot-tracking system comprising: awireless wrist tracker that automatically detects shot-attempts at abasket by a user; a wireless net tracker that automatically detects abasketball passing through a rim and net of a basketball hoop; apersonal computer system comprising a microprocessor and a memorystorage area; and a shot-tracking application in the memory storage areaof the personal computer system, the shot-tracking application havingprogram instructions that, when executed by the microprocessor, causethe microprocessor to automatically receive event data from the wirelesswrist tracker and the wireless net tracker and to automaticallydetermine the user's shooting statistics based on the received eventdata.
 2. The basketball shot-tracking system of claim 1, wherein thewireless wrist tracker detects shot-attempts by the user by comparingand matching actual movements of the user's wrist or arm with movementsof a typical player during a shot attempt as reflected in one or moreplayer shot data profiles stored in the wireless wrist tracker.
 3. Thebasketball shot-tracking system of claim 1, wherein the wireless nettracker detects a basketball passing through the rim and net of thebasketball hoop by comparing actual perturbations of the net withtypical perturbations of the net when a shot is made as reflected in oneor more made shot profiles stored in memory in the wireless net tracker.4. The basketball shot-tracking system of claim 1, further comprising: atraining and tuning module residing on the wireless wrist tracker, thetraining and tuning module having program instructions that, whenexecuted by the wireless wrist tracker, will cause the wireless wristtracker to create a player shot data profile corresponding to the user'stypical wrist and arm movements during a shot attempt.
 5. The basketballshot-tracking system of claim 1, wherein the shot-tracking applicationfurther comprises program instructions that, when executed by themicroprocessor, will cause the microprocessor to receive shot statisticsof other users and to manage and distribute the shot statistics so as toallow multiple users to challenge and engage each other in competition.6. The basketball shot-tracking system of claim 1, wherein the personalcomputer system comprises at least one of a handheld wireless telephone,a tablet computer system, a laptop computer system, a handheld personalinformation management system, a personal music player and a desktopcomputer system.
 7. A wireless wrist tracker device comprising: amicroprocessor, a memory storage area for storing one or more playershot data profiles, each player shot data profile representing typicalmovements of a user's arm or wrist while shooting a basketball; one ormore sensors to detect actual movements of the user's wrist or armduring an attempt to shoot a basketball; a radio transmitter; and a shotattempt detection program in the memory storage area, the shot attemptdetection program having program instructions that, when executed by themicroprocessor, cause the microprocessor to analyze data generated bythe one or more sensors and to determine whether a qualified matchexists between the actual movements and the typical movementsrepresented by at least one of said one or more player shot dataprofiles; wherein, when the shot attempt detection program determinesthat the qualified match exists, the program instructions are furtherconfigured to cause the microprocessor to transmit a message to apersonal computer system via the radio transmitter, the messageindicating that a shot attempt event has occurred.
 8. A wireless nettracker device comprising; a microprocessor, a memory storage area forstoring one or more made shot profiles, each made shot profilerepresenting typical perturbations of the net when a shot is made; oneor more sensors that detect actual perturbations of the net when abasketball passes through the net; a radio transmitter; and a made shotdetection program in the memory storage area, the made shot detectionprogram having program instructions that, when executed by themicroprocessor, cause the microprocessor to analyze data generated bythe one or more sensors and to determine whether a qualified matchexists between the actual perturbations of the net and the typicalperturbations of the net when a shot is made as represented by at leastone of said made shot profiles; wherein, when the made shot detectionprogram determines that the qualified match exists, the programinstructions are further configured to cause the microprocessor totransmit a message to a personal computer system via the radiotransmitter, the message indicating that a made shot event has occurred.9. The wireless net tracker of claim 8, wherein the memory storage areastores one or more rim bounce profiles which represent typicalperturbations of the net when a shot hits the basketball hoop's rim orbackboard and does not pass through the net.
 10. The wireless nettracker of claim 9, wherein the made shot module further comprisesprogram instructions that, when executed by the microprocessor, causethe microprocessor to detect missed shots that hit and bounce off of thebasketball hoop's rim or backboard by comparing the actual perturbationsof the net with the typical perturbations of the net represented by theone or more rim bounce profiles.
 11. An arm-worn tracking deviceconfigured to identify and report, to a co-operating shot-trackingapplication executing on a separate computing device, basketballshot-attempts taken by a player, the tracking device comprising: amotion sensor; a microprocessor which receives motion data generated bythe motion sensor; a computer memory; a transmitter; and amotion-processing application which executes on the microprocessor;wherein the motion-processing application causes the microprocessor toimplement the following steps: analyze and then store in the computermemory a qualified portion of the motion data that is generated by themotion sensor; compare the qualified portion of the motion data to oneor more player shot data profiles that have been previously stored inthe computer memory, with each of the player shot data profilescomprising data representative of how the player's shooting arm moveswhen the player makes a shot-attempt for one of a plurality of differenttypes of basketball shots; determine from the compare step whether theplayer has made a shot-attempt of any of said different types ofbasketball shots; and if the player has made a basketball shot-attempt,cause the transmitter to transmit a shot-attempt event message.
 12. Thetracking device of claim 11, wherein the motion data generated by themotion sensor comprises acceleration values Ax, Ay, and Az of the motionsensor along three mutually orthogonal axes and rotational orientationof the motion sensor.
 13. The tracking device of claim 12, wherein themotion-processing application causes the microprocessor to determine,for the qualified portion of the motion data, gravitational accelerationcomponents Gx, Gy, and Gz of the acceleration values Ax, Ay, and Az,respectively.
 14. The tracking device of claim 13, wherein the motionsensor outputs rotational orientation of the motion sensor in terms ofquaternion values and the microprocessor uses the quaternion values todetermine the gravitational acceleration components Gx, Gy, and Gz ofthe acceleration values Ax, Ay, and Az, respectively.
 15. The trackingdevice of claim 11, wherein the qualified portion of motion data that isstored in the computer memory is motion data that has been smoothed by amultiple-point-in-time, moving-averages process.
 16. The tracking deviceof claim 11, wherein the player shot data profiles each comprise dataover a predetermined PSD window of time that is representative of howthe player's shooting arm moves when the player makes a shot-attempt ofthe type to which the particular player shot data profile corresponds.17. The tracking device of claim 16, wherein the predetermined PSDwindow of time for each of the player shot data profiles is centeredaround a point of maximum jerk within the predetermined window of time,with jerk being equal to the square root of the sum of the squares ofAx, Ay, and Az acceleration values of the motion sensor along threemutually orthogonal axes.
 18. The tracking device of claim 16, whereinthe qualified portion of motion data comprises motion data that has beengenerated by the motion sensor over a continuous period of time thatlasts for more than a predetermined minimum length of time.
 19. Thetracking device of claim 18, wherein the qualified portion of motiondata comprises motion data that has been generated by the motion sensorwhile the player's arm is in a potential shooting position, with aminimum angle of inclination of the player's arm relative to horizontal.20. The tracking device of claim 18, wherein the predetermined minimumlength of time of the qualified portion of motion data is greater thanthe length of the predetermined PSD window of time; and wherein datawithin the selected one of the player shot data profiles is compared todata within a plurality of sub-portions of the qualified portion ofmotion data, with each of the sub-portions extending for a length oftime that is equal to the predetermined PSD window of time and with eachof the sub-portions beginning at a different starting point in timewithin the qualified portion of motion data.
 21. The tracking device ofclaim 20, wherein the player shot data profiles comprise gravitationalacceleration components Gx, Gy, and Gz of acceleration values Ax, Ay,and Az, respectively, of the motion sensor; wherein the qualifiedportion of motion data includes gravitational acceleration componentsGx, Gy, and Gz of acceleration values Ax, Ay, and Az, respectively, ofthe motion sensor, and wherein, for each of the plurality ofsub-portions of the qualified portion of motion data, comparing datawithin the selected one of the player shot data profiles to data withinthe particular sub-portion comprises 1) comparing Gx, Gy, and Gz valueswithin the selected one of the player shot data profiles tocorresponding values of Gx, Gy, and Gz within the particularsub-portion, and 2) tabulating the number of times each of the Gx, Gy,and Gz values within the selected one of the player shot data profilesmatches the corresponding value of Gx, Gy, and Gz within the particularsub-portion to within a pre-determined threshold value.
 22. The trackingdevice of claim 21, wherein the different starting points in time withinthe qualified portion of motion data are identified, before the datawithin the selected one of the player shot data profiles is compared tothe data within the plurality of sub-portions, by first comparing asub-portion of the data within the selected one of the player shot dataprofiles to a plurality of time-incrementally successive sub-portions ofthe data within the qualified portion.
 23. The tracking device of claim21, wherein the motion-processing application causes the microprocessorto calculate a degree of confidence of a shot-attempt match having beenmade based on the tabulated number of times Gx, Gy, and Gz values withinthe selected one of the player shot data profiles match correspondingvalues of Gx, Gy, and Gz within the particular sub-portion.
 24. Thetracking device of claim 23, wherein the motion-processing applicationcauses the microprocessor to compare the qualified portion of the motiondata to all of the player shot data profiles; calculate a degree ofconfidence of a shot-attempt match having been made based on thedata-comparison for each of the player shot data profiles; identify amaximum degree of confidence for the comparison across all of the playershot data profiles; and determine whether a shot-attempt event hasoccurred based on whether the maximum degree of confidence exceeds apredetermined threshold.
 25. The tracking device of claim 23, whereinthe degree of confidence is calculated based on the number of times theGx, Gy, and Gz values within the entirety of the selected one of theplayer shot data profiles match the corresponding Gx, Gy, and Gz valueswithin the entirety of the particular sub-portion of the qualifiedportion of motion data.
 26. The tracking device of claim 23, wherein thedegree of confidence is calculated based on the number of times the Gx,Gy, and Gz values within a maximum-jerk sub-window of the selected oneof the player shot data profiles, centered around a time of maximum jerkwithin the selected one of the player shot data profiles and having amaximum-jerk sub-window length of time that is less than thepredetermined PSD window of time, match the corresponding Gx, Gy, and Gzvalues within a sub-window of the particular sub-portion of thequalified portion of motion data that is centered around a time ofmaximum jerk within the particular sub-portion of the qualified portionof motion data and that has a length of time that is the same as themaximum-jerk sub-window length of time.
 27. The tracking device of claim23, wherein a first degree of confidence is calculated based on thenumber of times the Gx, Gy, and Gz values within the entirety of theselected one of the player shot data profiles match the correspondingGx, Gy, and Gz values within the entirety of the particular sub-portionof the qualified portion of motion data; a second degree of confidenceis calculated based on the number of times the Gx, Gy, and Gz valueswithin a maximum-jerk sub-window of the selected one of the player shotdata profiles, centered around a time of maximum jerk within theselected one of the player shot data profiles and having a maximum-jerksub-window length of time that is less than the predetermined PSD windowof time, match the corresponding Gx, Gy, and Gz values within asub-window of the particular sub-portion of the qualified portion ofmotion data that is centered around a time of maximum jerk within theparticular sub-portion of the qualified portion of motion data and thathas a length of time that is the same as the maximum-jerk sub-windowlength of time; and a total degree of confidence is calculated as anaverage of the first and second degrees of confidence.
 28. The trackingdevice of claim 11, wherein the transmitter is configured to transmitdata using a Bluetooth wireless protocol.
 29. The tracking device ofclaim 28, wherein the transmitter is configured to transmit data using aBLE protocol.
 30. The tracking device of claim 11, wherein thetransmitter is a WiFi transmitter.
 31. The tracking device of claim 11,wherein the shot-attempt message includes data identifying the player.32. The tracking device of claim 11, wherein the shot-attempt messageincludes data identifying the type of shot-attempt the player has made.33. An arm-worn tracking device configured to identify basketballshot-attempts taken by a player by comparing motion of the player'sshooting arm to one or more pre-established player shot data profiles,the tracking device comprising: a motion sensor; a microprocessor whichreceives motion data generated by the motion sensor, a computer memory;and a motion-processing application which executes on the microprocessorto establish and store the one or more player shot data profiles in thecomputer memory; wherein the motion-processing application causes themicroprocessor to implement the following steps: for each of a series oftraining shots of a given shot-type, analyze, and then store in thecomputer memory a qualified portion of, the motion data that isgenerated by the motion sensor; identify, within the qualified portionof motion data, motion data indicative of a basketball shot having beentaken and a point in time at which the basketball shot was taken; andstore in the computer memory a window's worth of shot-taken data, theshot-taken data being determined from the data in the qualified portionof motion data within a time window of predetermined duration andcentered around the point in time at which the basketball shot wastaken; and average together the shot-taken data from all of the testshots within the series, on a time-increment-by-time-increment andparameter-by-parameter basis, and then store in the computer memory theaveraged data values to yield a player shot data profile for the playerfor basketball shots of the given shot-type.
 34. The tracking device ofclaim 33, wherein the motion data generated by the motion sensorcomprises acceleration values Ax, Ay, and Az of the motion sensor alongthree mutually orthogonal axes and rotational orientation of the motionsensor.
 35. The tracking device of claim 34, wherein themotion-processing application causes the microprocessor to determineand, for the qualified portion of the motion data, store in the computermemory gravitational acceleration components Gx, Gy, and Gz of theacceleration values Ax, Ay, and Az, respectively.
 36. The trackingdevice of claim 35, wherein the motion sensor outputs rotationalorientation of the motion sensor in terms of quaternion values and themicroprocessor uses the quaternion values to determine the gravitationalacceleration components Gx, Gy, and Gz of the acceleration values Ax,Ay, and Az, respectively.
 37. The tracking device of claim 33, whereinthe qualified portion of motion data that is stored in the computermemory is motion data that has been smoothed by amultiple-point-in-time, moving-averages process.
 38. The tracking deviceof claim 34, wherein the player shot data profile comprises data over apredetermined PSD window of time that is representative of how theplayer's shooting arm moves when the player makes a shot-attempt of thetype to which the particular player shot data profile corresponds. 39.The tracking device of claim 38, wherein the predetermined PSD window oftime is centered around a point of maximum jerk within the predeterminedwindow of time, with jerk being equal to the square root of the sum ofthe squares of Ax, Ay, and Az acceleration values of the motion sensoralong three mutually orthogonal axes.
 40. The tracking device of claim38, wherein the qualified portion of motion data comprises motion datathat has been generated by the motion sensor over a continuous period oftime that lasts for more than a predetermined minimum length of time.41. The tracking device of claim 40, wherein the qualified portion ofmotion data comprises motion data that has been generated by the motionsensor while the player's arm is in a potential shooting position, witha minimum angle of inclination of the players arm relative tohorizontal.
 42. The tracking device of claim 38, wherein the player shotdata profile comprises acceleration components Gx, Gy, and Gz,respectively, of acceleration values Ax, Ay, and Az along three mutuallyorthogonal axes.
 43. The tracking device of claim 42, wherein the playershot data profile further comprises the Ax, Ay, and Az accelerationvalues.
 44. The tracking device of claim 42, wherein the motion sensoroutputs rotational orientation of the motion sensor in terms ofquaternion values and the player shot data profile further comprises thequaternion values.
 45. A computer-implemented method for detectingbasketball shot-attempts taken by a player using an arm-worn trackingdevice, the arm-worn tracking device having a motion sensor, amicroprocessor and a computer memory, the computer-implemented methodcomprising: receiving on the microprocessor motion data generated by themotion sensor; analyzing and storing in the computer memory a qualifiedportion of the motion data; comparing the qualified portion of themotion data to one or more player shot data profiles that have beenpreviously stored in the computer memory, with each of the one or moreplayer shot data profiles comprising data representative of how theplayer's shooting arm moves when the player takes a shot-attempt for oneof a plurality of different types of basketball shots; determining fromthe comparing step whether the player has made a shot-attempt of any ofsaid different types of basketball shots.
 46. The computer implementedmethod of claim 45, wherein the tracking device includes a transmitterand the method further comprises causing the transmitter to transmit ashot-attempt event message when it is determined, in the determiningstep, that a shot-attempt has been made.
 46. A computer-implementedmethod for detecting basketball shot-attempts taken by a player using anarm-worn tracking device, the arm-worn tracking device having amicroprocessor, a motion sensor, a computer memory and an interface to aremote computer system, the method comprising the steps of: generatingwith the motion sensor motion data representing the movement of theplayer's arm; for each of a series of training shots of a givenshot-type, causing the microprocessor to (i) analyze and store in thecomputer memory a qualified portion of motion data that generated by themotion sensor, (ii) identify within the qualified portion of motiondata, motion data indicative of a basketball shot having been taken anda point in time at which the basketball shot was taken, and (iii) storein the computer memory a window's worth of shot-taken data, theshot-taken data being determined from the data in the qualified portionof motion data within a time window of predetermined duration andcentered around the point in time at which the basketball shot wastaken; averaging together the shot-taken data from all of the test shotswithin the series, on a time-increment-by-time-increment andparameter-by-parameter basis; generating a player shot data profile forthe player for basketball shots of the given shot-type, the player shotdata profile including the averaged data values; and storing theaveraged data values in the computer memory.
 47. The method of claim 46,further comprising: comparing the qualified portion of the motion datato the player shot data profile stored in the computer memory;determining from the comparing step whether the player has made ashot-attempt of the given shot-type.
 48. The method of claim 47, furthercomprising transmitting via the interface to the remote computer systema message indicating that the shot-attempt of the given shot-type hasoccurred.
 49. The method of claim 48, wherein the interface to theremote computer system comprises a wireless radio transmitter.
 50. Themethod of claim 48, wherein the interface to the remote computer systemcomprises a direct connection.